Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5186 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Sep 16, 2005, 4:09:32 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: best completion of Objects :)

File:
1 edited

Legend:

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

    r5185 r5186  
    111111      return false;
    112112    if (inputSplits.getCount()==2)
    113       this->objectComplete(inputSplits.getString(1), classID);
     113    {
     114      if  (completionLine[strlen(completionLine)-1] != ' ')
     115       this->objectComplete(inputSplits.getString(1), classID);
     116    }
    114117    else
    115118      this->objectComplete("", classID);
     
    186189    const tList<const char>* objectList = this->createCompleteList(boList, objectBegin);
    187190    if (objectList != NULL)
    188       this->generalComplete(objectList, objectBegin, "%s", " ");
     191      this->generalComplete(objectList, objectBegin, "%s ");
    189192    else
    190193      return false;
Note: See TracChangeset for help on using the changeset viewer.