From 6272847acefc0651124f7a1d7dcbb224ef60affb Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 31 Oct 2017 12:54:21 +1100 Subject: Prompt: display the fallback text everytime the prompt is empty --- src/input_handler.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/input_handler.hh') diff --git a/src/input_handler.hh b/src/input_handler.hh index e184a8fa..9b23308c 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -34,7 +34,6 @@ enum class PromptFlags None = 0, Password = 1 << 0, DropHistoryEntriesWithBlankPrefix = 1 << 1, - InactiveInitString = 1 << 2, }; constexpr bool with_bit_ops(Meta::Type) { return true; } @@ -63,7 +62,7 @@ public: // abort or validation with corresponding PromptEvent value // returns to normal mode after validation if callback does // not change the mode itself - void prompt(StringView prompt, String initstr, + void prompt(StringView prompt, String initstr, String emptystr, Face prompt_face, PromptFlags flags, Completer completer, PromptCallback callback); void set_prompt_face(Face prompt_face); -- cgit v1.2.3