Control: severity -1 normal

Am Wed, Jul 29, 2026 at 09:37:14AM +0200, schrieb David Kalnischkies:
> The later does not happen anymore with the remap of <C-n>,
> but only for <C-n>. <Down> directly works as before.
> That seems like a very odd behaviour change…

I still think its an odd change and wonder what caused it, but it seems
in line with what happens in the 'normal' OmniComplete (in all 3 tested
versions of vim) that the line isn't changed on a remapped <C-n>
(my feeble attempt at reproducing this in bare vim attached).

So in some sense this change in behavior is aligning it closer to how
vim itself behaves… except that it is explicitly tested to not behave
this way in their tests…


> It seems to not effect anything big at least, so if it helps I can
> disable the test for now so the CVE fixes and/or perl can pass on
> to testing and worry about this at a later point in time… ?

I still believe that this is an odd behaviour change triggered by
vim, so investigating it eventually would be nice, but to remove
the pressure on what seems rather minor of an issue, I will disable
the failing test for now as suggested previously
(just uploaded, should be available in a short while).


Best regards

David Kalnischkies
set encoding=utf-8

function GetLine(id)
        if getline('.') != 'baz'
                throw "Line is: '" . getline('.') . "' should be: 'baz'"
        endif
endfunction

function PickCompletion(id)
        call feedkeys("\<C-n>")
        call timer_start(1000, funcref('GetLine'))
endfunction

function Remap(id)
        inoremap <C-n> <Down>
        call timer_start(1000, funcref('PickCompletion'))
endfunction

function TriggerCompletion(id)
        call feedkeys("\<C-n>")
        call timer_start(1000, funcref('Remap'))
endfunction

function Setup()
        call feedkeys("ifoo\<Enter>bar\<Enter>baz\<Enter>ball\<Enter>ba")
        call timer_start(1000, funcref('TriggerCompletion'))
endfunction

call Setup()

Attachment: signature.asc
Description: PGP signature

Reply via email to