forked from aniani/vim
patch 9.1.1272: completion: in keyword completion Ctrl_P cannot go back after Ctrl_N
Problem: completion: in keyword completion Ctrl_P cannot go back after Ctrl_N Solution: in find_compl_when_fuzzy() always return first match of array, after Ctrl_P use compl_shown_match->cp_next instead of compl_first_match. (glepnir) closes: #17043 Signed-off-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
6099db9a60
commit
3e50a28a03
@@ -2834,6 +2834,8 @@ func Test_complete_opt_fuzzy()
|
||||
call assert_equal('bar', getline('.'))
|
||||
call feedkeys("Sb\<C-X>\<C-N>\<C-Y>\<ESC>", 'tx')
|
||||
call assert_equal('blue', getline('.'))
|
||||
call feedkeys("Sb\<C-X>\<C-P>\<C-N>\<C-Y>\<ESC>", 'tx')
|
||||
call assert_equal('b', getline('.'))
|
||||
|
||||
" clean up
|
||||
set omnifunc=
|
||||
|
Reference in New Issue
Block a user