diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-02-01 23:04:37 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-02-01 23:04:37 +0000 |
| commit | d90919568a289e6a3e131d8ea6be67e27ebe4d6c (patch) | |
| tree | 6f2beae4fbe6f3460bad6f7a8de9fe47c2ea4ba4 /src/input_handler.cc | |
| parent | bc0dfa9e8fe488a1847580b50fa39ad42a987dc2 (diff) | |
Also execute prompt callback when just starting
incsearch will immediatly display the result of using an empty
string (reusing the search register content).
Fixes #1174
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index 9a39ef9e..b112f7ad 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -923,7 +923,12 @@ private: context().print_status(display_line); } - void on_enabled() override { display(); } + void on_enabled() override + { + display(); + m_callback(m_line_editor.line(), PromptEvent::Change, context()); + } + void on_disabled() override { context().print_status({}); } PromptCallback m_callback; |
