forked from teamnwah/openmw-tes3coop
Don't put duplicate lines in the console history
This commit is contained in:
parent
6f41e0d12e
commit
4cbb79191f
1 changed files with 2 additions and 1 deletions
|
@ -290,7 +290,8 @@ namespace MWGui
|
|||
|
||||
// Add the command to the history, and set the current pointer to
|
||||
// the end of the list
|
||||
mCommandHistory.push_back(cm);
|
||||
if (mCommandHistory.empty() || mCommandHistory.back() != cm)
|
||||
mCommandHistory.push_back(cm);
|
||||
mCurrent = mCommandHistory.end();
|
||||
mEditString.clear();
|
||||
|
||||
|
|
Loading…
Reference in a new issue