aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.h
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-05-18 21:18:34 +0200
committerGitHub <noreply@github.com>2022-05-18 21:18:34 +0200
commit6f0baa0bb7a57ec4451047876321eb6f24130b10 (patch)
tree4257741199bb61a7fc76b6f794445b6f74b85a16 /src/nvim/screen.h
parent3eea66d65a75c83cbd6bd7ec2aa0886781c807c9 (diff)
parent503d8b0892dbfee2d69286574f7eba3708b9a902 (diff)
downloadrneovim-6f0baa0bb7a57ec4451047876321eb6f24130b10.tar.gz
rneovim-6f0baa0bb7a57ec4451047876321eb6f24130b10.tar.bz2
rneovim-6f0baa0bb7a57ec4451047876321eb6f24130b10.zip
Merge pull request #18620 from bfredl/multibar
fix(ui): make winbar work with floats and multigrid
Diffstat (limited to 'src/nvim/screen.h')
-rw-r--r--src/nvim/screen.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/nvim/screen.h b/src/nvim/screen.h
index 3afbaa5eb6..f3beeff8a9 100644
--- a/src/nvim/screen.h
+++ b/src/nvim/screen.h
@@ -49,14 +49,22 @@ typedef struct {
} StlClickRecord;
/// Array defining what should be done when tabline is clicked
-extern StlClickDefinition *tab_page_click_defs;
+EXTERN StlClickDefinition *tab_page_click_defs INIT(= NULL);
/// Size of the tab_page_click_defs array
-extern long tab_page_click_defs_size;
+EXTERN long tab_page_click_defs_size INIT(= 0);
#define W_ENDCOL(wp) ((wp)->w_wincol + (wp)->w_width)
#define W_ENDROW(wp) ((wp)->w_winrow + (wp)->w_height)
+// While redrawing the screen this flag is set. It means the screen size
+// ('lines' and 'rows') must not be changed.
+EXTERN bool updating_screen INIT(= 0);
+
+// While resizing the screen this flag is set.
+EXTERN bool resizing_screen INIT(= 0);
+
+
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "screen.h.generated.h"
#endif