mirror of
https://github.com/neovim/neovim.git
synced 2026-06-12 14:58:15 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user