patch 8.2.3461: cannot distinguish Normal and Terminal-Normal mode
Problem: Cannot distinguish Normal and Terminal-Normal mode.
Solution: Make mode() return "nt" for Terminal-Normal mode. (issue #8856)
diff --git a/src/misc1.c b/src/misc1.c
index 1dd07f9..b4a4a8c 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -712,6 +712,10 @@
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