mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
vim-patch:8.2.2014: using CTRL-O in a prompt buffer moves cursor to start
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 vim/vim#7330)
ee8b787bcd
Test_prompt_editing is skipped, so edit the Lua test in prompt_buffer_spec.
This commit is contained in:
@@ -125,9 +125,22 @@ describe('prompt buffer', function()
|
||||
~ |
|
||||
|
|
||||
]])
|
||||
feed("<C-O>lz")
|
||||
screen:expect([[
|
||||
% -hz^el |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
[Prompt] [+] |
|
||||
other buffer |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
|
|
||||
]])
|
||||
feed("<End>x")
|
||||
screen:expect([[
|
||||
% -helx^ |
|
||||
% -hzelx^ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
|
||||
Reference in New Issue
Block a user