diff src/evalfunc.c @ 12112:6afc7339c2ad v8.0.0936

patch 8.0.0936: mode() returns wrong value for a terminal window commit https://github.com/vim/vim/commit/2bb7b6b0e477612cc098cba27cc63ec3d19a2527 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 13 20:58:33 2017 +0200 patch 8.0.0936: mode() returns wrong value for a terminal window Problem: Mode() returns wrong value for a terminal window. Solution: Return 't' when typed keys go to a job.
author Christian Brabandt <cb@256bit.org>
date Sun, 13 Aug 2017 21:00:04 +0200
parents 560a2b6789c3
children 60cf03e59402
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -7849,6 +7849,10 @@ f_mode(typval_T *argvars, typval_T *rett
 	buf[0] = 'x';
 	buf[1] = '!';
     }
+#ifdef FEAT_TERMINAL
+    else if (term_use_loop())
+	buf[0] = 't';
+#endif
     else if (VIsual_active)
     {
 	if (VIsual_select)