mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-04 05:45:35 +00:00
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,6 +290,7 @@ namespace MWGui
|
||||||
|
|
||||||
// Add the command to the history, and set the current pointer to
|
// Add the command to the history, and set the current pointer to
|
||||||
// the end of the list
|
// the end of the list
|
||||||
|
if (mCommandHistory.empty() || mCommandHistory.back() != cm)
|
||||||
mCommandHistory.push_back(cm);
|
mCommandHistory.push_back(cm);
|
||||||
mCurrent = mCommandHistory.end();
|
mCurrent = mCommandHistory.end();
|
||||||
mEditString.clear();
|
mEditString.clear();
|
||||||
|
|
Loading…
Reference in a new issue