Changeset 1596 for code/branches/core3/src/core/Shell.cc
- Timestamp:
- Jun 12, 2008, 10:53:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/core/Shell.cc
r1594 r1596 90 90 void Shell::setConfigValues() 91 91 { 92 SetConfigValue(maxHistoryLength_, 100) ;93 SetConfigValue(historyOffset_, 0) ;92 SetConfigValue(maxHistoryLength_, 100).callback(&Shell::commandHistoryLengthChanged); 93 SetConfigValue(historyOffset_, 0).callback(&Shell::commandHistoryOffsetChanged); 94 94 SetConfigValueVector(commandHistory_, std::vector<std::string>()); 95 95 } 96 97 void Shell::commandHistoryOffsetChanged() 98 { 96 99 if (this->historyOffset_ >= this->maxHistoryLength_) 97 100 this->historyOffset_ = 0; 101 } 102 103 void Shell::commandHistoryLengthChanged() 104 { 105 this->commandHistoryOffsetChanged(); 98 106 99 107 while (this->commandHistory_.size() > this->maxHistoryLength_)
Note: See TracChangeset
for help on using the changeset viewer.