Don't put duplicate lines in the console history

This commit is contained in:
scrawl 2015-01-27 02:08:09 +01:00
parent 6f41e0d12e
commit 4cbb79191f

View file

@ -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();