diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-12 17:07:06 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-12 17:07:06 +0200 |
commit | e8070987c6ca9b1e14c5305707c6d29c8e58e7c4 (patch) | |
tree | b1c1f6feef2bcd01639030aa7f6075a7cce5aaf5 /src/message.c | |
parent | ceba3dd5187788e09f65bd41b07b40f6f9aab953 (diff) |
patch 8.1.2141: :tselect has an extra hit-enter promptv8.1.2141
Problem: :tselect has an extra hit-enter prompt.
Solution: Do not set need_wait_return when only moving the cursor.
(closes #5040)
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/message.c b/src/message.c index dd5f3f519b..19defaa1f8 100644 --- a/src/message.c +++ b/src/message.c @@ -1980,15 +1980,14 @@ msg_puts_attr_len(char *str, int maxlen, int attr) attr &= ~MSG_HIST; } - /* - * When writing something to the screen after it has scrolled, requires a - * wait-return prompt later. Needed when scrolling, resetting - * need_wait_return after some prompt, and then outputting something - * without scrolling - */ - if (msg_scrolled != 0 && !msg_scrolled_ign) + // When writing something to the screen after it has scrolled, requires a + // wait-return prompt later. Needed when scrolling, resetting + // need_wait_return after some prompt, and then outputting something + // without scrolling + // Not needed when only using CR to move the cursor. + if (msg_scrolled != 0 && !msg_scrolled_ign && STRCMP(str, "\r") != 0) need_wait_return = TRUE; - msg_didany = TRUE; /* remember that something was outputted */ + msg_didany = TRUE; // remember that something was outputted /* * If there is no valid screen, use fprintf so we can see error messages. |