aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-01 13:23:28 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-01 15:05:10 -0400
commit7959aaf7811a8b0b5b82b7bc895734911e7a7813 (patch)
tree825f97fa925b4bdef5d3a68b3b493be2ef72ef16 /src/nvim/ex_getln.c
parentb120bb8ea9bdfbb96fb960fda79d05cc656e6071 (diff)
downloadrneovim-7959aaf7811a8b0b5b82b7bc895734911e7a7813.tar.gz
rneovim-7959aaf7811a8b0b5b82b7bc895734911e7a7813.tar.bz2
rneovim-7959aaf7811a8b0b5b82b7bc895734911e7a7813.zip
vim-patch:8.2.2686: status line is not updated when going to cmdline mode
Problem: Status line is not updated when going to cmdline mode. Solution: Redraw status lines if 'statusline' is set and going to status line mode. (based on patch from Justin M. Keyes et al., closes vim/vim#8044) https://github.com/vim/vim/commit/ce0b75711afb3ff260967a0843bca46ec09604b5
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 9977be56ca..76df01c205 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -775,9 +775,9 @@ 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 (!cmd_silent && msg_scrolled == 0) {
+ // Redraw the statusline in case it uses the current mode using the mode()
+ // function.
+ if (!cmd_silent && msg_scrolled == 0 && *p_stl != NUL) {
curwin->w_redr_status = true;
redraw_statuslines();
}