From d9c1669a5474ee0d09dbe60372a2959207187290 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Thu, 9 Dec 2021 21:23:03 +0100 Subject: refactor(misc1): move out misc functions which obviously belong elsewhere Also make some function names more descriptive/regular. --- src/nvim/screen.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/nvim/screen.c') diff --git a/src/nvim/screen.c b/src/nvim/screen.c index a666b9c8b0..d5b8b6db4c 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -314,6 +314,19 @@ void update_curbuf(int type) update_screen(type); } +/// called when the status bars for the buffer 'buf' need to be updated +void redraw_buf_status_later(buf_T *buf) +{ + FOR_ALL_WINDOWS_IN_TAB(wp, curtab) { + if (wp->w_buffer == buf && wp->w_status_height) { + wp->w_redr_status = true; + if (must_redraw < VALID) { + must_redraw = VALID; + } + } + } +} + /// Redraw the parts of the screen that is marked for redraw. /// /// Most code shouldn't call this directly, rather use redraw_later() and -- cgit