mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 02:46:31 +00:00
tui: Use underline cursor in Replace mode
This is a port of my original contribution to Vim, added in 7.4.687
(https://github.com/vim/vim/commit/v7-4-687). The TUI code has been
heavily refactored (see esp. 25ceadab37
),
so this required some translation, but the logic is the same.
This commit is contained in:

committed by
Justin M. Keyes

parent
fa48fc667a
commit
f79025b9de
@@ -218,6 +218,8 @@ static void remote_ui_mode_change(UI *ui, int mode)
|
||||
Array args = ARRAY_DICT_INIT;
|
||||
if (mode == INSERT) {
|
||||
ADD(args, STRING_OBJ(cstr_to_string("insert")));
|
||||
} else if (mode == REPLACE) {
|
||||
ADD(args, STRING_OBJ(cstr_to_string("replace")));
|
||||
} else {
|
||||
assert(mode == NORMAL);
|
||||
ADD(args, STRING_OBJ(cstr_to_string("normal")));
|
||||
|
Reference in New Issue
Block a user