diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-12 22:02:21 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-12 22:02:21 +0200 |
commit | 5aed0ccb965dbad4b60f4c77c9c4455a9379e73c (patch) | |
tree | 8347858e800403f8fa07f1fd7b7993b5f18dac4b /src/testdir/test_popupwin.vim | |
parent | 48a687148c4649f6f55b36a1f4111041e7207235 (diff) | |
download | vim-git-5aed0ccb965dbad4b60f4c77c9c4455a9379e73c.tar.gz |
patch 8.2.0743: can move to another buffer from a terminal in popup windowv8.2.0743
Problem: Can move to another buffer from a terminal in popup window.
Solution: Do not allow "gf" or editing a file. (closes #6072)
Diffstat (limited to 'src/testdir/test_popupwin.vim')
-rw-r--r-- | src/testdir/test_popupwin.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_popupwin.vim b/src/testdir/test_popupwin.vim index 99b445825..5eecb193c 100644 --- a/src/testdir/test_popupwin.vim +++ b/src/testdir/test_popupwin.vim @@ -2425,8 +2425,16 @@ func Test_popupwin_terminal_buffer() call assert_equal(winnr(), winnr('k')) call assert_equal(winnr(), winnr('h')) call assert_equal(winnr(), winnr('l')) + " Cannot quit while job is running call assert_fails('call feedkeys("\<C-W>:quit\<CR>", "xt")', 'E948:') + + " Cannot enter Terminal-Normal mode. + call feedkeys("xxx\<C-W>N", 'xt') + call assert_fails('call feedkeys("gf", "xt")', 'E863:') + call feedkeys("a\<C-U>", 'xt') + + " Exiting shell closes popup window call feedkeys("exit\<CR>", 'xt') " Wait for shell to exit sleep 100m |