vim-patch:8.2.0422: crash when passing popup window to win_splitmove()

Problem:    Crash when passing popup window to win_splitmove(). (john Devin)
Solution:   Disallow moving a popup window. (closes vim/vim#5816)
0f1563ffee

Add translated test for 8.2.0422 (popup->floating)
This commit is contained in:
Andy K. Massimino
2021-03-18 22:40:18 -04:00
parent b2ec770070
commit 0cec2d39c9
3 changed files with 31 additions and 1 deletions

View File

@@ -845,6 +845,18 @@ func Test_win_splitmove()
tabclose
endfunc
func Test_floatwin_splitmove()
vsplit
let win2 = win_getid()
let popup_winid = nvim_open_win(0, 0, {'relative': 'win',
\ 'row': 3, 'col': 3, 'width': 12, 'height': 3})
call assert_fails('call win_splitmove(popup_winid, win2)', 'E957:')
call assert_fails('call win_splitmove(win2, popup_winid)', 'E957:')
call nvim_win_close(popup_winid, 1)
bwipe
endfunc
func Test_window_resize()
" Vertical :resize (absolute, relative, min and max size).
vsplit