diff options
author | raichoo <raichoo@googlemail.com> | 2018-05-10 14:55:07 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-05-10 14:55:07 +0200 |
commit | 3a6b80f2f44dcb5cd050bbbaacce4fc8a638aede (patch) | |
tree | f9f8ea4ccd4da90684d5f7e48acdd7cb7d77c6f0 /src | |
parent | f1a307555395d43fedc5d672d2bca8d92b00532e (diff) | |
download | rneovim-3a6b80f2f44dcb5cd050bbbaacce4fc8a638aede.tar.gz rneovim-3a6b80f2f44dcb5cd050bbbaacce4fc8a638aede.tar.bz2 rneovim-3a6b80f2f44dcb5cd050bbbaacce4fc8a638aede.zip |
UI: redraw statusline when entering cmdline (#8347)
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_getln.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index e1198d6f1c..96388a2a9d 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -347,6 +347,13 @@ static uint8_t *command_line_enter(int firstc, long count, int indent) redrawcmd(); } + // redraw the statusline for statuslines that display the current mode + // using the mode() function. + if (KeyTyped) { + curwin->w_redr_status = true; + redraw_statuslines(); + } + did_emsg = false; got_int = false; s->state.check = command_line_check; |