Closed nwithers-ecr closed 2 years ago
I think I know what this is, it's not the quickfix list.
When you use q:
you enter a special window called cmdwin
(is like the built-in command-line, but in the form of a window).
Solutions:
<C-c>
to close the input. And then again, to get out of the cmdwin
. vim.cmd([[
autocmd CmdwinEnter * inoremap <buffer> : :
autocmd CmdwinEnter * nnoremap <buffer> : :
]])
These restore the original behaviour of :
inside cmdwin
. Because cmdwin
was made to execute commands, you don't need my plugin in that case.
The bug here is that cmdwin
somehow executes :q
and closes the input unexpectedly. This causes the input instance to lose the bufnr
and that's when the error hits.
The plugin now checks if the buffer of the input is valid, if not it will create a new input instance.
The conflict between cmdwin
and the input is still there, but at least now the input can recover from the error.
To reproduce
I received this error
config
nvim version