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', {})
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user