diff options
author | michi_cc <michi_cc@openttd.org> | 2013-08-05 20:37:57 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2013-08-05 20:37:57 +0000 |
commit | d15c1c5d4aacb74bbfd6d47700c5b2a2cec368ff (patch) | |
tree | 1cc8e74963f04a70fe7a7622e51dc2f31451a9f7 /src/console_gui.cpp | |
parent | 30867c487f17ca13744977c7873f4e1cf214fd33 (diff) | |
download | openttd-d15c1c5d4aacb74bbfd6d47700c5b2a2cec368ff.tar.xz |
(svn r25692) -Add: Replacement of a part of the edit box text with a new string.
Diffstat (limited to 'src/console_gui.cpp')
-rw-r--r-- | src/console_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console_gui.cpp b/src/console_gui.cpp index 1e1fd069b..887dfda60 100644 --- a/src/console_gui.cpp +++ b/src/console_gui.cpp @@ -311,9 +311,9 @@ struct IConsoleWindow : Window return ES_HANDLED; } - virtual void InsertTextString(int wid, const char *str, bool marked, const char *caret) + virtual void InsertTextString(int wid, const char *str, bool marked, const char *caret, const char *insert_location, const char *replacement_end) { - if (_iconsole_cmdline.InsertString(str, marked, caret)) { + if (_iconsole_cmdline.InsertString(str, marked, caret, insert_location, replacement_end)) { IConsoleWindow::scroll = 0; IConsoleResetHistoryPos(); this->SetDirty(); |