mirror of
https://github.com/vim/vim.git
synced 2025-10-23 08:44:20 -04:00
patch 9.1.1747: completion: redo (.) broken with preinsert and autocompletion
Problem: completion: redo (.) broken with preinsert and autocompletion Solution: Make redo (.) work with preinsert and autocompletion (Girish Palya) closes: #18253 Signed-off-by: Girish Palya <girishji@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
80981e1db9
commit
306a138172
@@ -5634,6 +5634,13 @@ func Test_autocomplete_completeopt_preinsert()
|
||||
" Should not work with fuzzy
|
||||
set cot+=fuzzy
|
||||
call DoTest("f", 'f', 2)
|
||||
set cot-=fuzzy
|
||||
|
||||
" Verify that redo (dot) works
|
||||
call setline(1, ["foobar", "foozbar", "foobaz", "changed", "change"])
|
||||
call feedkeys($"/foo\<CR>", 'tx')
|
||||
call feedkeys($"cwch\<C-N>\<Esc>n.n.", 'tx')
|
||||
call assert_equal(repeat(['changed'], 3), getline(1, 3))
|
||||
|
||||
%delete _
|
||||
let &l:undolevels = &l:undolevels
|
||||
|
Reference in New Issue
Block a user