summaryrefslogtreecommitdiff
path: root/plugins/mode.cpp
diff options
context:
space:
mode:
authorPetr Mrázek2011-08-13 14:42:09 +0200
committerPetr Mrázek2011-08-13 14:42:09 +0200
commit81e6bce92ce0efd8dda1036a84a24655f8bbf82d (patch)
tree7ea53d7f3c7b013c5042ead5b350ef64ed2c4982 /plugins/mode.cpp
parent1cbcb99dd53a9236e1e008ed8a4447296973e399 (diff)
downloaddfhack-81e6bce92ce0efd8dda1036a84a24655f8bbf82d.tar.gz
dfhack-81e6bce92ce0efd8dda1036a84a24655f8bbf82d.tar.bz2
dfhack-81e6bce92ce0efd8dda1036a84a24655f8bbf82d.tar.xz
Command history separated from Console.
Diffstat (limited to 'plugins/mode.cpp')
-rw-r--r--plugins/mode.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mode.cpp b/plugins/mode.cpp
index 1ae336b9..4a64fd2b 100644
--- a/plugins/mode.cpp
+++ b/plugins/mode.cpp
@@ -131,7 +131,8 @@ DFhackCExport command_result mode (Core * c, vector <string> & parameters)
string selected;
input_again:
- c->con.lineedit("Enter new mode: ",selected);
+ CommandHistory hist;
+ c->con.lineedit("Enter new mode: ",selected, hist);
if(selected == "c")
return CR_OK;
const char * start = selected.c_str();