mirror of
https://github.com/neovim/neovim.git
synced 2026-02-18 10:21:26 +10:00
When the terminal process is suspended, putting cursor at bottom-left hints that pressing a key will change the suspended state. However, when returning to Normal mode, the user is more likely to interact with the actual terminal output (e.g. copying it), so it's better to put cursor at the old position which should be closer to the output. Also, using is_focused() to check for mode is confusing. Just check `State & MODE_TERMINAL` instead.