1
0
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:
Rob Pilling
2022-12-13 12:26:09 +00:00
committed by Bram Moolenaar
parent 6342e2c5a6
commit cb94c91070
3 changed files with 17 additions and 0 deletions

View File

@@ -1911,4 +1911,17 @@ function Test_splitkeep_status()
call VerifyScreenDump(buf, 'Test_splitkeep_status_1', {})
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