Mercurial > vim
comparison src/message.c @ 18293:1c5974759bcd v8.1.2141
patch 8.1.2141: :tselect has an extra hit-enter prompt
Commit: https://github.com/vim/vim/commit/e8070987c6ca9b1e14c5305707c6d29c8e58e7c4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 12 17:07:06 2019 +0200
patch 8.1.2141: :tselect has an extra hit-enter prompt
Problem: :tselect has an extra hit-enter prompt.
Solution: Do not set need_wait_return when only moving the cursor.
(closes #5040)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 12 Oct 2019 17:15:04 +0200 |
parents | dfe9db84e326 |
children | 2047cb93eb0c |
comparison
equal
deleted
inserted
replaced
18292:d10f337d9fd3 | 18293:1c5974759bcd |
---|---|
1978 { | 1978 { |
1979 add_msg_hist((char_u *)str, -1, attr); | 1979 add_msg_hist((char_u *)str, -1, attr); |
1980 attr &= ~MSG_HIST; | 1980 attr &= ~MSG_HIST; |
1981 } | 1981 } |
1982 | 1982 |
1983 /* | 1983 // When writing something to the screen after it has scrolled, requires a |
1984 * When writing something to the screen after it has scrolled, requires a | 1984 // wait-return prompt later. Needed when scrolling, resetting |
1985 * wait-return prompt later. Needed when scrolling, resetting | 1985 // need_wait_return after some prompt, and then outputting something |
1986 * need_wait_return after some prompt, and then outputting something | 1986 // without scrolling |
1987 * without scrolling | 1987 // Not needed when only using CR to move the cursor. |
1988 */ | 1988 if (msg_scrolled != 0 && !msg_scrolled_ign && STRCMP(str, "\r") != 0) |
1989 if (msg_scrolled != 0 && !msg_scrolled_ign) | |
1990 need_wait_return = TRUE; | 1989 need_wait_return = TRUE; |
1991 msg_didany = TRUE; /* remember that something was outputted */ | 1990 msg_didany = TRUE; // remember that something was outputted |
1992 | 1991 |
1993 /* | 1992 /* |
1994 * If there is no valid screen, use fprintf so we can see error messages. | 1993 * If there is no valid screen, use fprintf so we can see error messages. |
1995 * If termcap is not active, we may be writing in an alternate console | 1994 * If termcap is not active, we may be writing in an alternate console |
1996 * window, cursor positioning may not work correctly (window size may be | 1995 * window, cursor positioning may not work correctly (window size may be |