From f79025b9dea8e46afa0f10884a1759744ada5940 Mon Sep 17 00:00:00 2001 From: Omar Sandoval Date: Sun, 17 May 2015 01:39:22 -0700 Subject: 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. 25ceadab37edba13f5afa78d8b4723da03ef35f0), so this required some translation, but the logic is the same. --- src/nvim/msgpack_rpc/remote_ui.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nvim/msgpack_rpc/remote_ui.c') diff --git a/src/nvim/msgpack_rpc/remote_ui.c b/src/nvim/msgpack_rpc/remote_ui.c index 35a76ac901..e582bf9550 100644 --- a/src/nvim/msgpack_rpc/remote_ui.c +++ b/src/nvim/msgpack_rpc/remote_ui.c @@ -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"))); -- cgit