Redisplay prompt on Prompt mode enabled

Fixes #603
This commit is contained in:
Maxime Coste 2016-03-15 13:45:57 +00:00
parent 6739c5047e
commit e82c3410a5

View File

@ -655,7 +655,6 @@ public:
if (m_autoshowcompl) if (m_autoshowcompl)
refresh_completions(CompletionFlags::Fast); refresh_completions(CompletionFlags::Fast);
m_line_editor.reset(std::move(initstr)); m_line_editor.reset(std::move(initstr));
display();
} }
void on_key(Key key) override void on_key(Key key) override
@ -868,6 +867,8 @@ private:
context().print_status(display_line); context().print_status(display_line);
} }
void on_enabled() override { display(); }
PromptCallback m_callback; PromptCallback m_callback;
Completer m_completer; Completer m_completer;
const String m_prompt; const String m_prompt;