vim-patch:8.1.1759: no mode char for terminal mapping from maparg()

Problem:    No mode char for terminal mapping from maparg().
Solution:   Check for TERMINAL mode. (closes vim/vim#4735)
14371ed697
This commit is contained in:
notomo
2019-07-28 07:44:28 +09:00
parent 7f5a113f65
commit 08c7e206cc
3 changed files with 6 additions and 5 deletions

View File

@@ -3304,6 +3304,8 @@ char *map_mode_to_chars(int mode)
ga_append(&mapmode, 'n'); /* :nmap */
if (mode & OP_PENDING)
ga_append(&mapmode, 'o'); /* :omap */
if (mode & TERM_FOCUS)
ga_append(&mapmode, 't'); /* :tmap */
if ((mode & (VISUAL + SELECTMODE)) == VISUAL + SELECTMODE)
ga_append(&mapmode, 'v'); /* :vmap */
else {