diff options
| author | Petr Mrázek | 2011-08-13 14:42:09 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-08-13 14:42:09 +0200 |
| commit | 81e6bce92ce0efd8dda1036a84a24655f8bbf82d (patch) | |
| tree | 7ea53d7f3c7b013c5042ead5b350ef64ed2c4982 /plugins/mode.cpp | |
| parent | 1cbcb99dd53a9236e1e008ed8a4447296973e399 (diff) | |
| download | dfhack-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.cpp | 3 |
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(); |
