Changeset 7729 in orxonox.OLD for trunk/src/lib/shell/shell_input.cc
- Timestamp:
- May 19, 2006, 3:07:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_input.cc
r7676 r7729 44 44 45 45 this->inputLine = ""; 46 this->historyIT = this->history.begin();46 this->historyIT = ShellInput::history.begin(); 47 47 this->setHistoryLength(50); 48 48 this->historyScrolling = false; … … 65 65 } 66 66 67 std::list<std::string> ShellInput::history; 68 67 69 /** 68 70 * @brief standard deconstructor 69 71 */ 70 72 ShellInput::~ShellInput () 71 {}73 {} 72 74 73 75 /** … … 173 175 174 176 // adding the new Command to the History 175 this->history.push_back(this->inputLine); 177 if (history.back() != this->inputLine) 178 this->history.push_back(this->inputLine); 176 179 if (this->history.size() > this->historyLength) 177 180 {
Note: See TracChangeset
for help on using the changeset viewer.