mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 02:21:51 +00:00
fix(completion): update CursorColumn during completion (#39159)
Since Nvim uses a compositor, redrawing windows won't lead to flicker in the popup menu, so the pum_visible() checks in move.c can be removed.
This commit is contained in:
@@ -1523,6 +1523,100 @@ describe('CursorColumn highlight', function()
|
||||
|
|
||||
]])
|
||||
end)
|
||||
|
||||
it('is updated with completion active #39153', function()
|
||||
command('set autocomplete cursorcolumn')
|
||||
feed('iasdf<CR>')
|
||||
screen:expect([[
|
||||
{21:a}sdf |
|
||||
^ |
|
||||
{1:~ }|*5
|
||||
{5:-- INSERT --} |
|
||||
]])
|
||||
feed('a')
|
||||
screen:expect([[
|
||||
a{21:s}df |
|
||||
a^ |
|
||||
{4:asdf }{1: }|
|
||||
{1:~ }|*4
|
||||
{5:-- INSERT --} |
|
||||
]])
|
||||
feed('s')
|
||||
screen:expect([[
|
||||
as{21:d}f |
|
||||
as^ |
|
||||
{4:asdf }{1: }|
|
||||
{1:~ }|*4
|
||||
{5:-- INSERT --} |
|
||||
]])
|
||||
feed('d')
|
||||
screen:expect([[
|
||||
asd{21:f} |
|
||||
asd^ |
|
||||
{4:asdf }{1: }|
|
||||
{1:~ }|*4
|
||||
{5:-- INSERT --} |
|
||||
]])
|
||||
feed('f')
|
||||
screen:expect([[
|
||||
asdf{21: } |
|
||||
asdf^ |
|
||||
{4:asdf }{1: }|
|
||||
{1:~ }|*4
|
||||
{5:-- INSERT --} |
|
||||
]])
|
||||
feed('g')
|
||||
screen:expect([[
|
||||
asdf {21: } |
|
||||
asdfg^ |
|
||||
{1:~ }|*5
|
||||
{5:-- INSERT --} |
|
||||
]])
|
||||
feed(' ')
|
||||
screen:expect([[
|
||||
asdf {21: } |
|
||||
asdfg ^ |
|
||||
{1:~ }|*5
|
||||
{5:-- INSERT --} |
|
||||
]])
|
||||
feed('<BS>')
|
||||
screen:expect([[
|
||||
asdf {21: } |
|
||||
asdfg^ |
|
||||
{1:~ }|*5
|
||||
{5:-- INSERT --} |
|
||||
]])
|
||||
feed('<BS>')
|
||||
screen:expect([[
|
||||
asdf{21: } |
|
||||
asdf^ |
|
||||
{4:asdf }{1: }|
|
||||
{1:~ }|*4
|
||||
{5:-- INSERT --} |
|
||||
]])
|
||||
feed('<BS>')
|
||||
screen:expect([[
|
||||
asd{21:f} |
|
||||
asd^ |
|
||||
{4:asdf }{1: }|
|
||||
{1:~ }|*4
|
||||
{5:-- INSERT --} |
|
||||
]])
|
||||
feed('h')
|
||||
screen:expect([[
|
||||
asdf{21: } |
|
||||
asdh^ |
|
||||
{1:~ }|*5
|
||||
{5:-- INSERT --} |
|
||||
]])
|
||||
feed('<Esc>')
|
||||
screen:expect([[
|
||||
asd{21:f} |
|
||||
asd^h |
|
||||
{1:~ }|*5
|
||||
|
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('ColorColumn highlight', function()
|
||||
|
||||
Reference in New Issue
Block a user