aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorAndy K. Massimino <f8a663@normed.space>2021-03-18 22:40:18 -0400
committerAndy K. Massimino <f8a663@normed.space>2021-03-19 23:02:34 -0400
commit0cec2d39c995f8aaeac95edb0ce463c6fcd19645 (patch)
tree30815433392d7749d69eae39c7f96001822e63d3 /src/nvim/testdir
parentb2ec77007081cf9c63f935115f69c718db248226 (diff)
downloadrneovim-0cec2d39c995f8aaeac95edb0ce463c6fcd19645.tar.gz
rneovim-0cec2d39c995f8aaeac95edb0ce463c6fcd19645.tar.bz2
rneovim-0cec2d39c995f8aaeac95edb0ce463c6fcd19645.zip
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) https://github.com/vim/vim/commit/0f1563ffee4397f5b379517c41b7c9a977fd2e22 Add translated test for 8.2.0422 (popup->floating)
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_window_cmd.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_window_cmd.vim b/src/nvim/testdir/test_window_cmd.vim
index 402c2c3eb7..86682cca4f 100644
--- a/src/nvim/testdir/test_window_cmd.vim
+++ b/src/nvim/testdir/test_window_cmd.vim
@@ -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