mirror of
https://github.com/neovim/neovim.git
synced 2025-11-27 12:40:39 +00:00
add cmdline mode to modechange of RPC and tests
use set_cursor_shape_bar for cmdline mode fix test of screen_basic_spec.lua & screen.lua comment fix
This commit is contained in:
@@ -532,13 +532,16 @@ static void ui_mode_change(void)
|
||||
if (!full_screen) {
|
||||
return;
|
||||
}
|
||||
/* Get a simple UI mode out of State. */
|
||||
if ((State & REPLACE) == REPLACE)
|
||||
// Get a simple UI mode out of State.
|
||||
if ((State & REPLACE) == REPLACE) {
|
||||
mode = REPLACE;
|
||||
else if (State & INSERT)
|
||||
} else if (State & INSERT) {
|
||||
mode = INSERT;
|
||||
else
|
||||
} else if (State & CMDLINE) {
|
||||
mode = CMDLINE;
|
||||
} else {
|
||||
mode = NORMAL;
|
||||
}
|
||||
UI_CALL(mode_change, mode);
|
||||
conceal_check_cursur_line();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user