summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-10-30 17:56:32 +1100
committerMaxime Coste <mawww@kakoune.org>2017-10-30 18:58:47 +1100
commit6d78b06405622ac5abc1b5587cc65d30a93e4815 (patch)
tree710be0ab0a420f4576716ed5cc374ce8a529415b /src/input_handler.cc
parentcd215ccee90aef19d51f403a76f33c7b7eeecfce (diff)
Do not auto apply the fallback regex when in regex prompts
Fixes #1653
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index 794a9f5a..8f9e20f4 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -968,7 +968,8 @@ private:
{
display();
m_line_changed = false;
- m_callback(m_line_editor.line(), PromptEvent::Change, context());
+ m_callback((m_flags & PromptFlags::InactiveInitString) ? StringView{} : m_line_editor.line(),
+ PromptEvent::Change, context());
if (not (context().flags() & Context::Flags::Transient))
m_idle_timer.set_next_date(Clock::now() + get_idle_timeout(context()));