Changeset 7342 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Apr 19, 2006, 4:08:09 AM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r7341 r7342 337 337 */ 338 338 339 // lastText->setRelCoor2D(this->calculateLinePosition(0));340 341 339 this->bufferText.front()->setText(text); 342 340 } … … 381 379 // redisplay the buffers 382 380 list<std::string>::const_iterator it = this->bufferIterator; 381 if (it == ShellBuffer::getInstance()->getBuffer().end()) 382 { 383 /// FIXME 384 PRINTF(1)("Should not heappen\n"); 385 it--; 386 } 383 387 for (std::list<Text*>::iterator textIt = this->bufferText.begin(); textIt != this->bufferText.end(); ++textIt) 384 388 { 385 389 (*textIt)->setText((*it)); 390 if (it == ShellBuffer::getInstance()->getBuffer().begin()) 391 { 392 /// FIXME 393 PRINTF(1)("Should not heappen\n"); 394 break; 395 } 386 396 it--; 387 397 } -
trunk/src/lib/shell/shell_input.cc
r7341 r7342 229 229 if (!this->historyScrolling) 230 230 return; 231 if ( this->historyIT !=this->history.end())231 if (!this->history.empty() && this->historyIT != --this->history.end()) 232 232 { 233 233 std::string nextElem = *(++this->historyIT);
Note: See TracChangeset
for help on using the changeset viewer.