diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-19 18:46:25 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-19 18:46:25 +0100 |
commit | ee8b787bcd15f63a938243770065e704c9b5c85f (patch) | |
tree | e37b80b2ec5d0860baf3afbb6270016c8f4db1cb /src/testdir/test_prompt_buffer.vim | |
parent | 79cdf80bed3192add70882bc0aaeede91cc74300 (diff) | |
download | vim-git-8.2.2014.tar.gz |
patch 8.2.2014: using CTRL-O in a prompt buffer moves cursor to startv8.2.2014
Problem: Using CTRL-O in a prompt buffer moves cursor to start of the line.
Solution: Do not move the cursor when restarting edit. (closes #7330)
Diffstat (limited to 'src/testdir/test_prompt_buffer.vim')
-rw-r--r-- | src/testdir/test_prompt_buffer.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/testdir/test_prompt_buffer.vim b/src/testdir/test_prompt_buffer.vim index 00b97f8c8..2a1ae67f5 100644 --- a/src/testdir/test_prompt_buffer.vim +++ b/src/testdir/test_prompt_buffer.vim @@ -85,9 +85,12 @@ func Test_prompt_editing() call term_sendkeys(buf, left . left . left . bs . '-') call WaitForAssert({-> assert_equal('cmd: -hel', term_getline(buf, 1))}) + call term_sendkeys(buf, "\<C-O>lz") + call WaitForAssert({-> assert_equal('cmd: -hzel', term_getline(buf, 1))}) + let end = "\<End>" call term_sendkeys(buf, end . "x") - call WaitForAssert({-> assert_equal('cmd: -helx', term_getline(buf, 1))}) + call WaitForAssert({-> assert_equal('cmd: -hzelx', term_getline(buf, 1))}) call term_sendkeys(buf, "\<C-U>exit\<CR>") call WaitForAssert({-> assert_equal('other buffer', term_getline(buf, 1))}) |