mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Create new mode() value for terminal-mode ('t') #2287
This commit is contained in:
parent
960b9108c2
commit
27ead64da0
@ -4602,6 +4602,7 @@ mode([expr]) Return a string that indicates the current mode.
|
||||
i Insert
|
||||
R Replace |R|
|
||||
Rv Virtual Replace |gR|
|
||||
t Terminal {Nvim}
|
||||
c Command-line
|
||||
cv Vim Ex mode |gQ|
|
||||
ce Normal Ex mode |Q|
|
||||
|
@ -11769,6 +11769,8 @@ static void f_mode(typval_T *argvars, typval_T *rettv)
|
||||
} else if (exmode_active) {
|
||||
buf[0] = 'c';
|
||||
buf[1] = 'e';
|
||||
} else if (State & TERM_FOCUS) {
|
||||
buf[0] = 't';
|
||||
} else {
|
||||
buf[0] = 'n';
|
||||
if (finish_op)
|
||||
|
Loading…
Reference in New Issue
Block a user