forked from aniani/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 #7281)
This commit is contained in:
@@ -122,6 +122,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
|
||||
|
||||
Reference in New Issue
Block a user