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

patch 8.2.0093: win_splitmove() can make Vim hang

Problem:    win_splitmove() can make Vim hang.
Solution:   Check windows exists in the current tab page. (closes #5444)
This commit is contained in:
Bram Moolenaar
2020-01-06 21:03:24 +01:00
parent a1353b5352
commit 7b94e77132
3 changed files with 8 additions and 1 deletions

View File

@@ -927,6 +927,10 @@ func Test_win_splitmove()
call assert_fails('call win_splitmove(winnr(), 123)', 'E957:')
call assert_fails('call win_splitmove(123, winnr())', 'E957:')
call assert_fails('call win_splitmove(winnr(), winnr())', 'E957:')
tabnew
call assert_fails('call win_splitmove(1, win_getid(1, 1))', 'E957:')
tabclose
endfunc
" vim: shiftwidth=2 sts=2 expandtab