mirror of
https://github.com/neovim/neovim.git
synced 2026-01-06 19:39:53 +10:00
fix(ui2): hide search highlights in msg window #36626
fix(ui2): hide search highlights in msg window. Problem: Search highlighting is shown in the msg (and dialog) window. Solution: Hide search highlighting in all but the pager window.
This commit is contained in:
@@ -438,4 +438,23 @@ describe('messages2', function()
|
||||
]])
|
||||
t.eq({ filetype = 4 }, n.eval('g:set')) -- still fires for 'filetype'
|
||||
end)
|
||||
|
||||
it('Search highlights only apply to pager', function()
|
||||
command('set cmdheight=0 | echo "foo"')
|
||||
feed('/foo')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*11
|
||||
{1:~ }{4:foo}|
|
||||
/foo^ |
|
||||
]])
|
||||
feed('<Esc>g<lt>/foo')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*10
|
||||
{3: }|
|
||||
{10:foo} |
|
||||
/foo^ |
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user