diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-11-07 21:14:36 +0000 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-12-07 11:34:27 +0000 |
commit | c2d0a1041e215634be316c4e824c1b1b2f242e76 (patch) | |
tree | 50c7411827bcc76853a7fa354d9c5bb90fd692cd /src/nvim/testdir/test_prompt_buffer.vim | |
parent | a128b64e73322a41b175811dc88a7f7046278de3 (diff) | |
download | rneovim-c2d0a1041e215634be316c4e824c1b1b2f242e76.tar.gz rneovim-c2d0a1041e215634be316c4e824c1b1b2f242e76.tar.bz2 rneovim-c2d0a1041e215634be316c4e824c1b1b2f242e76.zip |
vim-patch:8.2.1976: cannot backspace in prompt buffer after using cursor-left
Problem: Cannot backspace in prompt buffer after using cursor-left. (Maxim
Kim)
Solution: Ignore "arrow_used" in a prompt buffer. (closes vim/vim#7281)
https://github.com/vim/vim/commit/6f6244855fbce5aaa718cd5001a29aac3c5c15d6
cmdchar_todo wasn't adapted properly for Nvim's state system, which caused it to
be a dead store and such was removed in #11900.
Re-introduce cmdchar_todo properly.
Diffstat (limited to 'src/nvim/testdir/test_prompt_buffer.vim')
-rw-r--r-- | src/nvim/testdir/test_prompt_buffer.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_prompt_buffer.vim b/src/nvim/testdir/test_prompt_buffer.vim index 72b037dd37..af7231c9c0 100644 --- a/src/nvim/testdir/test_prompt_buffer.vim +++ b/src/nvim/testdir/test_prompt_buffer.vim @@ -126,6 +126,14 @@ func Test_prompt_garbage_collect() bwipe! endfunc +func Test_prompt_backspace() + new + set buftype=prompt + call feedkeys("A123456\<Left>\<BS>\<Esc>", 'xt') + call assert_equal('% 12346', getline(1)) + bwipe! +endfunc + " Test for editing the prompt buffer func Test_prompt_buffer_edit() new |