mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.0.0813: cannot use a terminal window while the job is running
Problem: Cannot use Vim commands in a terminal window while the job is running. Solution: Implement Terminal Normal mode.
This commit is contained in:
@@ -9037,6 +9037,14 @@ nv_esc(cmdarg_T *cap)
|
||||
static void
|
||||
nv_edit(cmdarg_T *cap)
|
||||
{
|
||||
#ifdef FEAT_TERMINAL
|
||||
if (term_in_terminal_mode())
|
||||
{
|
||||
term_leave_terminal_mode();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* <Insert> is equal to "i" */
|
||||
if (cap->cmdchar == K_INS || cap->cmdchar == K_KINS)
|
||||
cap->cmdchar = 'i';
|
||||
|
Reference in New Issue
Block a user