forked from aniani/vim
patch 9.0.1051: after a failed CTRL-W ] next command splits window
Problem: After a failed CTRL-W ] next command splits window. Solution: Reset postponed_split. (Rob Pilling, closes #11698)
This commit is contained in:
committed by
Bram Moolenaar
parent
6342e2c5a6
commit
cb94c91070
@@ -1911,4 +1911,17 @@ function Test_splitkeep_status()
|
|||||||
call VerifyScreenDump(buf, 'Test_splitkeep_status_1', {})
|
call VerifyScreenDump(buf, 'Test_splitkeep_status_1', {})
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function Test_new_help_window_on_error()
|
||||||
|
help change.txt
|
||||||
|
execute "normal! /CTRL-@\<CR>"
|
||||||
|
silent! execute "normal! \<C-W>]"
|
||||||
|
|
||||||
|
let wincount = winnr('$')
|
||||||
|
help 'mod'
|
||||||
|
|
||||||
|
call assert_equal(wincount, winnr('$'))
|
||||||
|
call assert_equal(expand("<cword>"), "'mod'")
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
" vim: shiftwidth=2 sts=2 expandtab
|
" vim: shiftwidth=2 sts=2 expandtab
|
||||||
|
@@ -695,6 +695,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1051,
|
||||||
/**/
|
/**/
|
||||||
1050,
|
1050,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -559,6 +559,7 @@ newwindow:
|
|||||||
// Execute the command right here, required when "wincmd ]"
|
// Execute the command right here, required when "wincmd ]"
|
||||||
// was used in a function.
|
// was used in a function.
|
||||||
do_nv_ident(Ctrl_RSB, NUL);
|
do_nv_ident(Ctrl_RSB, NUL);
|
||||||
|
postponed_split = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// edit file name under cursor in a new window
|
// edit file name under cursor in a new window
|
||||||
@@ -674,6 +675,7 @@ wingotofile:
|
|||||||
// Execute the command right here, required when
|
// Execute the command right here, required when
|
||||||
// "wincmd g}" was used in a function.
|
// "wincmd g}" was used in a function.
|
||||||
do_nv_ident('g', xchar);
|
do_nv_ident('g', xchar);
|
||||||
|
postponed_split = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'f': // CTRL-W gf: "gf" in a new tab page
|
case 'f': // CTRL-W gf: "gf" in a new tab page
|
||||||
|
Reference in New Issue
Block a user