summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-04-08 18:27:53 +0200
committerBram Moolenaar <Bram@vim.org>2021-04-08 18:27:53 +0200
commitd8db8383926cb8729417d9515cbfaf455dbbd8d1 (patch)
tree5677b947d81e5a7178aed8f6ed0bf6491beaf19a /src/ex_getln.c
parent175a41c13f3e27e30c662f2f418c5a347dbc645d (diff)
patch 8.2.2737: status line not updated when local 'statusline' option setv8.2.2737
Problem: Status line not updated when local 'statusline' option set. Solution: Check the 'statusline' option of each window.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index b61761b608..a9f33e6ec2 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -1710,10 +1710,19 @@ getcmdline_int(
#ifdef FEAT_STL_OPT
// Redraw the statusline in case it uses the current mode using the mode()
// function.
- if (!cmd_silent && msg_scrolled == 0 && *p_stl != NUL)
+ if (!cmd_silent && msg_scrolled == 0)
{
- curwin->w_redr_status = TRUE;
- redraw_statuslines();
+ int found_one = FALSE;
+ win_T *wp;
+
+ FOR_ALL_WINDOWS(wp)
+ if (*p_stl != NUL || *wp->w_p_stl != NUL)
+ {
+ wp->w_redr_status = TRUE;
+ found_one = TRUE;
+ }
+ if (found_one)
+ redraw_statuslines();
}
#endif