Skip to content

Commit 662d938

Browse files
committed
patch 8.0.0826: cannot use text objects in Terminal mode
Problem: Cannot use text objects in Terminal mode. Solution: Check for pending operator and Visual mode first. (Yasuhiro Matsumoto, closes #1906)
1 parent 3633cf5 commit 662d938

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/normal.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9037,14 +9037,6 @@ nv_esc(cmdarg_T *cap)
90379037
static void
90389038
nv_edit(cmdarg_T *cap)
90399039
{
9040-
#ifdef FEAT_TERMINAL
9041-
if (term_in_terminal_mode())
9042-
{
9043-
term_leave_terminal_mode();
9044-
return;
9045-
}
9046-
#endif
9047-
90489040
/* <Insert> is equal to "i" */
90499041
if (cap->cmdchar == K_INS || cap->cmdchar == K_KINS)
90509042
cap->cmdchar = 'i';
@@ -9063,6 +9055,14 @@ nv_edit(cmdarg_T *cap)
90639055
clearopbeep(cap->oap);
90649056
#endif
90659057
}
9058+
#ifdef FEAT_TERMINAL
9059+
else if (term_in_terminal_mode())
9060+
{
9061+
clearop(cap->oap);
9062+
term_leave_terminal_mode();
9063+
return;
9064+
}
9065+
#endif
90669066
else if (!curbuf->b_p_ma && !p_im)
90679067
{
90689068
/* Only give this error when 'insertmode' is off. */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
826,
772774
/**/
773775
825,
774776
/**/

0 commit comments

Comments
 (0)