mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
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:
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user