Neovim version (nvim -v)
v0.7.0-dev+1292-ge9b53f3fb
Vim (not Nvim) behaves the same?
No
Operating system/version
WSL Ubuntu
Terminal name/version
wsltty
$TERM environment variable
xterm-256color
Installation
Build from source
How to reproduce the issue
" init.vim
autocmd CmdlineChanged * call timer_start(0, {-> Foo()})
let s:buf = nvim_create_buf(v:false, v:true)
function! Foo()
call nvim_buf_set_lines(s:buf, 0, -1, v:true, [])
redraw
endfunction
nvim -u init.vim
:h<CR> to open help file
/with<CR> search for text
/Bar<CR> search for another text
Expected behavior
incsearch highlight works as expected.
Actual behavior
When searching for with, the incsearch highlighting is missing.
When searching for Bar, incsearch highlights with instead of Bar.
This is similar to #14064 but with the additional step of nvim_buf_set_lines().
Bisected to 5ab1229: feat: add support for global statusline
Neovim version (nvim -v)
v0.7.0-dev+1292-ge9b53f3fb
Vim (not Nvim) behaves the same?
No
Operating system/version
WSL Ubuntu
Terminal name/version
wsltty
$TERM environment variable
xterm-256color
Installation
Build from source
How to reproduce the issue
nvim -u init.vim:h<CR>to open help file/with<CR>search for text/Bar<CR>search for another textExpected behavior
incsearchhighlight works as expected.Actual behavior
When searching for
with, the incsearch highlighting is missing.When searching for
Bar, incsearch highlightswithinstead ofBar.This is similar to #14064 but with the additional step of
nvim_buf_set_lines().Bisected to 5ab1229:
feat: add support for global statusline