From a0055ad3a789b8eeb0c983d8a18d4bcaeaf456b8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 2 Jun 2016 18:37:05 +0200 Subject: patch 7.4.1876 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) --- src/message.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/message.c') diff --git a/src/message.c b/src/message.c index d3572eb42..5bd602784 100644 --- a/src/message.c +++ b/src/message.c @@ -2475,9 +2475,9 @@ 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) + * 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 v1.2.1