mirror of
https://github.com/neovim/neovim.git
synced 2026-04-25 16:54:12 +00:00
fix(cmdline): validate 'incsearch' cursor for "cmdline_show" redraw (#34630)
Problem: "cmdline_show" event may be emitted with an invalid cursor
position, causing a redraw that will clear the match highlight.
Solution: Mark the cursor position as valid so that a "cmdline_show"
callback that updates the screen does not clear the match highlight.
This commit is contained in:
@@ -43,4 +43,15 @@ describe('cmdline2', function()
|
||||
]])
|
||||
n.assert_alive()
|
||||
end)
|
||||
|
||||
it("redraw does not clear 'incsearch' highlight with conceal", function()
|
||||
exec('call setline(1, ["foo", "foobar"]) | set conceallevel=1 concealcursor=c')
|
||||
feed('/foo')
|
||||
screen:expect([[
|
||||
{10:foo} |
|
||||
{2:foo}bar |
|
||||
{1:~ }|*11
|
||||
/foo^ |
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user