From aa35cd9af0a3909ae79403e56639c1b3212583a9 Mon Sep 17 00:00:00 2001 From: lonerover Date: Sun, 1 Jan 2017 00:27:11 +0800 Subject: vim-patch:7.4.1876 (#5848) Problem: Typing "k" at the hit-enter prompt has no effect. Solution: Don't assume recursive use of the prompt if a character was typed. (Hirohito Higashi) https://github.com/vim/vim/commit/a0055ad3a789b8eeb0c983d8a18d4bcaeaf456b8 --- src/nvim/message.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/nvim/message.c') diff --git a/src/nvim/message.c b/src/nvim/message.c index 3163a797ed..637b89ccbe 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -2030,9 +2030,10 @@ static int do_more_prompt(int typed_char) int i; // We get called recursively when a timer callback outputs a message. In - // that case don't show another prompt. Also when at the hit-Enter prompt. - if (entered || State == HITRETURN) { - return false; + // that case don't show another prompt. Also when at the hit-Enter prompt + // and nothing was typed. + if (entered || (State == HITRETURN && typed_char == 0)) { + return false; } entered = true; -- cgit