0
0
mirror of https://github.com/vim/vim.git synced 2025-10-06 05:44:14 -04:00

patch 8.2.2649: Vim9: some wincmd arguments cause a white space error

Problem:    Vim9: some wincmd arguments cause a white space error.
Solution:   Insert a space before the count. (closes #8001)
This commit is contained in:
Bram Moolenaar
2021-03-24 20:08:12 +01:00
parent c54f347d63
commit 1ff89deeaa
3 changed files with 26 additions and 4 deletions

View File

@@ -1056,6 +1056,27 @@ def Test_wincmd()
endif
assert_notequal(id1, win_getid())
close
split
var id = win_getid()
split
:2wincmd o
assert_equal(id, win_getid())
only
split
split
assert_equal(3, winnr('$'))
:2wincmd c
assert_equal(2, winnr('$'))
only
split
split
assert_equal(3, winnr('$'))
:2wincmd q
assert_equal(2, winnr('$'))
only
enddef
def Test_windo_missing_endif()