feat(terminal): implement <c-\><c-o> for terminal mode

this works similar to <c-o> or <c-\><c-o> in insert mode
This commit is contained in:
bfredl
2022-07-30 22:07:58 +02:00
parent 0a049c322f
commit 9092540315
10 changed files with 86 additions and 16 deletions

View File

@@ -211,12 +211,15 @@ void get_mode(char *buf)
buf[i++] = 'o';
// to be able to detect force-linewise/blockwise/charwise operations
buf[i++] = (char)motion_force;
} else if (curbuf->terminal) {
buf[i++] = 't';
if (restart_edit == 'I') {
buf[i++] = 'T';
}
} else if (restart_edit == 'I' || restart_edit == 'R'
|| restart_edit == 'V') {
buf[i++] = 'i';
buf[i++] = (char)restart_edit;
} else if (curbuf->terminal) {
buf[i++] = 't';
}
}