vim-patch:8.2.3461: distinguish Normal and Terminal-Normal mode #15878

Problem:    Cannot distinguish Normal and Terminal-Normal mode.
Solution:   Make mode() return "nt" for Terminal-Normal mode. (issue vim/vim#8856)
72406a4bd2
This commit is contained in:
zeertzjq
2021-10-10 09:15:46 +08:00
committed by GitHub
parent 65b8232260
commit f4359b5dbd
7 changed files with 32 additions and 11 deletions

View File

@@ -195,6 +195,8 @@ char *get_mode(void)
|| restart_edit == 'V') {
buf[1] = 'i';
buf[2] = (char)restart_edit;
} else if (curbuf->terminal) {
buf[1] = 't';
}
}