Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7424 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Apr 28, 2006, 6:00:15 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: safed the occurence of a directory being the sole competitor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_completion_plugin.cc

    r7423 r7424  
    106106    else
    107107    {
     108      bool grabbedDir = false;
    108109      std::string directoryName;
    109110      std::string::size_type pos = completionBegin.find_last_of("/");
     
    138139        {
    139140          printf("Dir %s\n", fileName.c_str());
     141          grabbedDir = true;
    140142          completionList.push_back(fileName + "/");
    141143        }
     144      }
     145
     146      if (completionList.size() == 1 && grabbedDir)
     147      {
     148        std::string dir = completionList[0];
     149        completionList.clear();
     150        this->addToCompleteList(completionList, dir);
    142151      }
    143152    }
Note: See TracChangeset for help on using the changeset viewer.