diff options
author | chemzqm <chemzqm@gmail.com> | 2016-11-26 07:39:33 +0800 |
---|---|---|
committer | chemzqm <chemzqm@gmail.com> | 2016-11-30 22:20:06 +0800 |
commit | 3cf4b14e966ec04371d38af6451bc69eaadb425b (patch) | |
tree | 5848aad84944276debad27d09af204b0ce7c6784 /src/nvim/ui.c | |
parent | ecd7beb6e4876961075cc211d2b92f987d670dfa (diff) | |
download | rneovim-3cf4b14e966ec04371d38af6451bc69eaadb425b.tar.gz rneovim-3cf4b14e966ec04371d38af6451bc69eaadb425b.tar.bz2 rneovim-3cf4b14e966ec04371d38af6451bc69eaadb425b.zip |
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
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r-- | src/nvim/ui.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c index eb500414a7..cc0d2ad1b4 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -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(); } |