diff options
author | Neil Moore <neil@s-z.org> | 2013-08-24 03:20:38 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-08-24 03:56:01 -0400 |
commit | f8c068ad83a84cf057d4f422c23b716d86a5db47 (patch) | |
tree | 86cff845e990b496f87eee2c112c71ac6e70853e /crawl-ref/source/message.cc | |
parent | d1430c45d1c8454ff1b2807c1a96363b44deddc1 (diff) | |
download | crawl-ref-f8c068ad83a84cf057d4f422c23b716d86a5db47.tar.gz crawl-ref-f8c068ad83a84cf057d4f422c23b716d86a5db47.zip |
Allow specifying pre-filled text for {msgwin,cancelable}_get_line.
Also remove an unused parameter.
Diffstat (limited to 'crawl-ref/source/message.cc')
-rw-r--r-- | crawl-ref/source/message.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/message.cc b/crawl-ref/source/message.cc index b9d2b94e8c..5a086604a0 100644 --- a/crawl-ref/source/message.cc +++ b/crawl-ref/source/message.cc @@ -1285,12 +1285,12 @@ void msgwin_got_input() } int msgwin_get_line(string prompt, char *buf, int len, - input_history *mh, int (*keyproc)(int& c)) + input_history *mh, const string &fill) { if (prompt != "") msgwin_prompt(prompt); - int ret = cancelable_get_line(buf, len, mh, keyproc); + int ret = cancelable_get_line(buf, len, mh, NULL, fill); msgwin_reply(buf); return ret; } |