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:
@@ -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
|
||||
|
Reference in New Issue
Block a user