Problem: Cannot use text objects in Terminal mode.
Solution: Check for pending operator and Visual mode first. (Yasuhiro
Matsumoto, closes #1906)
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';
clearopbeep(cap->oap);
#endif
}
+#ifdef FEAT_TERMINAL
+ else if (term_in_terminal_mode())
+ {
+ clearop(cap->oap);
+ term_leave_terminal_mode();
+ return;
+ }
+#endif
else if (!curbuf->b_p_ma && !p_im)
{
/* Only give this error when 'insertmode' is off. */
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 826,
/**/
825,
/**/