Bug: Hitting <C-l> does not immediately clear results from searchcount component #1245
Open
2 tasks done
Labels
bug
Something isn't working
Self Checks
How to reproduce the problem
searchcount
component/a<CR>
searchcount
component becomes visible<C-l>
to clear highlighting of current search resultsExpected behaviour
searchcount
component becomes instantly invisible.Actual behaviour
searchcount
component does not become instantly invisible. It becomes invisible after the remaining time until lualine refreshes.Minimal config to reproduce the issue
Lualine default config with following changes:
searchcount
component added to section lualine_xAdditional information
Neovim 0.10 by default maps
<C-l>
to<Cmd>nohlsearch|diffupdate|normal! <C-L><CR>
, see:nmap <C-l>
and:help default-mappings
.Workaround:
I think this works because
:
, unlike<Cmd>
, triggers a mode change, and lualine refreshes onModeChanged
.The text was updated successfully, but these errors were encountered: