summaryrefslogtreecommitdiffstats
path: root/src/misc1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 1dd07f9067..b4a4a8cc75 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -712,6 +712,10 @@ f_mode(typval_T *argvars, typval_T *rettv)
buf[1] = 'i';
buf[2] = restart_edit;
}
+#ifdef FEAT_TERMINAL
+ else if (term_in_normal_mode())
+ buf[1] = 't';
+#endif
}
// Clear out the minor mode when the argument is not a non-zero number or