mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
Don't put duplicate lines in the console history
This commit is contained in:
parent
6f41e0d12e
commit
4cbb79191f
@ -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…
x
Reference in New Issue
Block a user