From e82c3410a5179c7f6c64ef3ea9e4ca316c302cb8 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 15 Mar 2016 13:45:57 +0000 Subject: [PATCH] Redisplay prompt on Prompt mode enabled Fixes #603 --- src/input_handler.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input_handler.cc b/src/input_handler.cc index 953cdc23..257f51be 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -655,7 +655,6 @@ public: if (m_autoshowcompl) refresh_completions(CompletionFlags::Fast); m_line_editor.reset(std::move(initstr)); - display(); } void on_key(Key key) override @@ -868,6 +867,8 @@ private: context().print_status(display_line); } + void on_enabled() override { display(); } + PromptCallback m_callback; Completer m_completer; const String m_prompt;