Open cameronr opened 17 hours ago
Does this behavior only happen with telescope? Is it reproducible with other kinds of windows like this??
I've only noticed it when opening things (buffers, help windows with Telescope though I suspect it would happen for any plugin that opens another window while in insert mode. It's possible it's an underlying Telescope or nvim bug but still figured it was worth working around.
Steps to reproduce:
:Telescope find_files
(either the cmd or a keymap)Expected: the new buffer is opened and the normal mode CursorLineNr highlight is displayed Actual: the new buffer is opened but the insert mode CursorlineNr highght is displayed.
This happens because nvim sends a
ModeChanged
event to insert mode for typing into the Telescope window, as expected. However, there doesn't seem to be aModeChanged
event back to normal mode when the Telescope window closes and the new buffer is opened.I have a workaround and will submit a PR shortly.