mirror of
https://github.com/vim/vim.git
synced 2025-10-22 08:34:29 -04:00
patch 9.1.1685: Missing changes from PR 18068
Problem: Missing changes from PR 18068 Solution: Include the missing changes (Girish Palya) Co-authored-by: Girish Palya <girishji@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
3b3b936125
commit
c6a0f42cdb
@@ -310,7 +310,7 @@ ins_ctrl_x(void)
|
||||
if (!ctrl_x_mode_cmdline())
|
||||
{
|
||||
// if the next ^X<> won't ADD nothing, then reset compl_cont_status
|
||||
if ((compl_cont_status & CONT_N_ADDS) && !p_ac)
|
||||
if (compl_cont_status & CONT_N_ADDS)
|
||||
compl_cont_status |= CONT_INTRPT;
|
||||
else
|
||||
compl_cont_status = 0;
|
||||
|
@@ -5199,7 +5199,7 @@ func Test_autocomplete_trigger()
|
||||
|
||||
" Test 4a: When autocomplete menu is active, ^X^N completes buffer keywords
|
||||
let g:CallCount = 0
|
||||
call feedkeys("S#a\<C-X>\<C-N>\<F2>\<Esc>0", 'tx!')
|
||||
call feedkeys("S#a\<C-E>\<C-X>\<C-N>\<F2>\<Esc>0", 'tx!')
|
||||
call assert_equal(['abc', 'abcd'], b:matches->mapnew('v:val.word'))
|
||||
call assert_equal(2, g:CallCount)
|
||||
|
||||
@@ -5226,6 +5226,14 @@ func Test_autocomplete_trigger()
|
||||
call assert_equal(['afoo bar', 'and'], b:matches->mapnew('v:val.word'))
|
||||
call assert_equal(1, g:CallCount)
|
||||
|
||||
" Issue #18044
|
||||
%d
|
||||
call setline(1, ["first line", "second line"])
|
||||
call feedkeys("Gof\<C-X>\<C-L>\<Esc>", 'tx!')
|
||||
call assert_equal("first line", getline(3))
|
||||
call feedkeys("Sf\<C-X>\<C-L>\<C-X>\<C-L>\<Esc>", 'tx!')
|
||||
call assert_equal("second line", getline(4))
|
||||
|
||||
" Test 5: When invalid prefix stops completion, backspace should restart it
|
||||
%d
|
||||
set complete&
|
||||
|
@@ -724,6 +724,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1685,
|
||||
/**/
|
||||
1684,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user