patch 9.1.1826: Patch v9.1.1230 causes confusion about Ctrl-C behaviour
Problem: Patch v9.1.1230 causes confusion about Ctrl-C behaviour (kuuote, after v9.1.1230) Solution: Revert the behaviour, keep the old behaviour fixes: #17266 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
*pattern.txt* For Vim version 9.1. Last change: 2025 Sep 24
|
||||
*pattern.txt* For Vim version 9.1. Last change: 2025 Oct 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -141,7 +141,8 @@ CTRL-C Interrupt current (search) command. Use CTRL-Break on
|
||||
help users who use "vim file | grep word" and don't
|
||||
know how to get out (blindly typing :qa<CR> would
|
||||
work).
|
||||
If a popup is open, the active popup will be closed.
|
||||
If a popup with a |popup-filter| is open, the popup
|
||||
will be closed.
|
||||
|
||||
*:noh* *:nohlsearch*
|
||||
:noh[lsearch] Stop the highlighting for the 'hlsearch' option. It
|
||||
|
@ -1,4 +1,4 @@
|
||||
*version9.txt* For Vim version 9.1. Last change: 2025 Oct 04
|
||||
*version9.txt* For Vim version 9.1. Last change: 2025 Oct 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -41760,7 +41760,6 @@ Others: ~
|
||||
- the putty terminal is detected using an |TermResponse| autocommand in
|
||||
|defaults.vim| and Vim switches to a dark background
|
||||
- improve the |vimtutor| and add a second chapter for more advanced tips
|
||||
- |CTRL-C| always closes the active |popup-window|.
|
||||
- the configure script will favor using GTK3 over GTK2 when auto-detecting the
|
||||
gui toolkit
|
||||
- |gv| works in operator pending mode and does not abort
|
||||
|
@ -3622,20 +3622,6 @@ popup_do_filter(int c)
|
||||
&& (wp->w_filter_mode & state) != 0)
|
||||
res = invoke_popup_filter(wp, c);
|
||||
|
||||
// when Ctrl-C and no popup has been processed (res is still FALSE)
|
||||
// Try to find and close a popup that has no filter callback
|
||||
if (c == Ctrl_C && res == FALSE)
|
||||
{
|
||||
popup_reset_handled(POPUP_HANDLED_2);
|
||||
wp = find_next_popup(FALSE, POPUP_HANDLED_2);
|
||||
if (wp != NULL)
|
||||
{
|
||||
popup_close_with_retval(wp, -1);
|
||||
res = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (must_redraw > was_must_redraw)
|
||||
{
|
||||
int save_got_int = got_int;
|
||||
|
@ -3931,7 +3931,7 @@ func Test_popupwin_cancel_with_without_filter()
|
||||
|
||||
call feedkeys("\<C-C>", 'xt')
|
||||
call assert_equal({}, popup_getpos(win1))
|
||||
call assert_equal({}, popup_getpos(win2))
|
||||
call assert_equal(10, popup_getpos(win2).line)
|
||||
|
||||
call popup_clear()
|
||||
endfunc
|
||||
|
@ -729,6 +729,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1826,
|
||||
/**/
|
||||
1825,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user