aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-10-03 13:57:01 +0100
committerSean Dewar <seandewar@users.noreply.github.com>2021-12-07 11:34:24 +0000
commit28134f4e78819c2bbf0344326b9d44f21eb0d736 (patch)
treef83a2f888368a0302203e04ae09bdbf51c779e6c /src/nvim/testdir
parentafaad8b54ebd2ad4ba2145f4069f5017cace3c8f (diff)
downloadrneovim-28134f4e78819c2bbf0344326b9d44f21eb0d736.tar.gz
rneovim-28134f4e78819c2bbf0344326b9d44f21eb0d736.tar.bz2
rneovim-28134f4e78819c2bbf0344326b9d44f21eb0d736.zip
vim-patch:8.1.0035: not easy to switch between prompt buffer and other windows
Problem: Not easy to switch between prompt buffer and other windows. Solution: Accept CTRL-W commands in Insert mode. Start and stop Insert mode as one would expect. https://github.com/vim/vim/commit/6d41c78e353b630bc1a72cbff9160311d2a81e8c Cherry-pick channel.txt change from: https://github.com/vim/vim/commit/d2f3a8b8787333abf2300d38836b196955f10c00 b_prompt_insert was already ported.
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_prompt_buffer.vim7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/testdir/test_prompt_buffer.vim b/src/nvim/testdir/test_prompt_buffer.vim
index c59a00afcc..fde97a66a8 100644
--- a/src/nvim/testdir/test_prompt_buffer.vim
+++ b/src/nvim/testdir/test_prompt_buffer.vim
@@ -145,10 +145,9 @@ func Test_prompt_buffer_edit()
call assert_beeps("normal! \<C-X>")
" pressing CTRL-W in the prompt buffer should trigger the window commands
call assert_equal(1, winnr())
- " In Nvim, CTRL-W commands aren't usable from insert mode in a prompt buffer
- " exe "normal A\<C-W>\<C-W>"
- " call assert_equal(2, winnr())
- " wincmd w
+ exe "normal A\<C-W>\<C-W>"
+ call assert_equal(2, winnr())
+ wincmd w
close!
call assert_equal(0, prompt_setprompt([], ''))
endfunc