aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-02-22 16:08:24 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2021-03-22 23:18:40 +0100
commit243820ebd0d9df7664311c8bf79d879bf23eb742 (patch)
tree73bd78832f061f3e091ccb1468b8110c91f23835 /src/nvim/buffer_defs.h
parente5cfc7f3a0257682410cbb6bb433688bccdfd54f (diff)
downloadrneovim-243820ebd0d9df7664311c8bf79d879bf23eb742.tar.gz
rneovim-243820ebd0d9df7664311c8bf79d879bf23eb742.tar.bz2
rneovim-243820ebd0d9df7664311c8bf79d879bf23eb742.zip
floats: add borders (MS-DOS MODE)
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index ae7b9739a6..e8038e7281 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -1079,6 +1079,10 @@ typedef struct {
bool external;
bool focusable;
WinStyle style;
+ bool border;
+ schar_T border_chars[8];
+ int border_hl_ids[8];
+ int border_attr[8];
} FloatConfig;
#define FLOAT_CONFIG_INIT ((FloatConfig){ .height = 0, .width = 0, \
@@ -1256,6 +1260,11 @@ struct window_S {
int w_height_request;
int w_width_request;
+ int w_border_adj;
+ // outer size of window grid, including border
+ int w_height_outer;
+ int w_width_outer;
+
/*
* === start of cached values ====
*/
@@ -1331,7 +1340,8 @@ struct window_S {
// w_redr_type is REDRAW_TOP
linenr_T w_redraw_top; // when != 0: first line needing redraw
linenr_T w_redraw_bot; // when != 0: last line needing redraw
- int w_redr_status; // if TRUE status line must be redrawn
+ bool w_redr_status; // if true status line must be redrawn
+ bool w_redr_border; // if true border must be redrawn
// remember what is shown in the ruler for this window (if 'ruler' set)
pos_T w_ru_cursor; // cursor position shown in ruler