I did not know whether to put it as a bug report as it is a bug which I only can reproduce with third party non core app (i am talking about ranger
).
The bug is simple:
Have ranger
(and bash
) installed (you can replace bash with some other shell)
Run:
nvim --clean +':set shell=/bin/sh' +term +'call feedkeys("iranger --cmd=\'shell bash -c exit\' \\<CR>")'
and then press q
.
Where did my cursor go? This does not happen when ranger is run inside xterm
.
Other way to reproduce the glitch (wher newline is enter):
nvim --clean
:set shell=/bin/bash
:term
:startinsert
ranger
:shell bash
exit
q