mirror of
https://github.com/vim/vim.git
synced 2025-10-17 07:44:28 -04:00
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)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user