aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-12-10 10:56:17 +0100
committerGitHub <noreply@github.com>2021-12-10 10:56:17 +0100
commit26eb6051528186270b924c7c806a3f434c233530 (patch)
tree7229d143d9ce52354cd35d105054bf47d206a5bc /src/nvim/screen.c
parentac2d140a33dfe88f882218e15a443b8300cca6b2 (diff)
parenta59589ca018425f672eb70bf7d2b54d24df49326 (diff)
downloadrneovim-26eb6051528186270b924c7c806a3f434c233530.tar.gz
rneovim-26eb6051528186270b924c7c806a3f434c233530.tar.bz2
rneovim-26eb6051528186270b924c7c806a3f434c233530.zip
Merge pull request #16597 from bfredl/nomisc1
refactor: move out some long-hanging fruit from misc1.c
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 6d3142451f..0d06c45229 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