aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index 7442e60024..c794b88229 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -1028,10 +1028,11 @@ typedef enum {
kFloatRelativeEditor = 0,
kFloatRelativeWindow = 1,
kFloatRelativeCursor = 2,
+ kFloatRelativeMouse = 3,
} FloatRelative;
EXTERN const char *const float_relative_str[] INIT(= { "editor", "win",
- "cursor" });
+ "cursor", "mouse" });
typedef enum {
kWinStyleUnused = 0,
@@ -1418,20 +1419,20 @@ struct window_S {
typedef struct statuscol statuscol_T;
struct statuscol {
- int width; // width of the status column
- int cur_attr; // current attributes in text
- int num_attr; // attributes used for line number
- int fold_attr; // attributes used for fold column
- int sign_attr[SIGN_SHOW_MAX]; // attributes used for signs
- int truncate; // truncated width
- bool draw; // draw statuscolumn or not
- char fold_text[10]; // text in fold column (%C)
- char *sign_text[SIGN_SHOW_MAX]; // text in sign column (%s)
- char text[MAXPATHL]; // text in status column
- char *textp; // current position in text
- size_t text_len; // length of text
- stl_hlrec_t *hlrec; // highlight groups
- stl_hlrec_t *hlrecp; // current highlight group
+ int width; ///< width of the status column
+ int cur_attr; ///< current attributes in text
+ int num_attr; ///< attributes used for line number
+ int fold_attr; ///< attributes used for fold column
+ int sign_attr[SIGN_SHOW_MAX + 1]; ///< attributes used for signs
+ int truncate; ///< truncated width
+ bool draw; ///< draw statuscolumn or not
+ char fold_text[10]; ///< text in fold column (%C)
+ char *sign_text[SIGN_SHOW_MAX + 1]; ///< text in sign column (%s)
+ char text[MAXPATHL]; ///< text in status column
+ char *textp; ///< current position in text
+ char *text_end; ///< end of text (the NUL byte)
+ stl_hlrec_t *hlrec; ///< highlight groups
+ stl_hlrec_t *hlrecp; ///< current highlight group
};
/// Macros defined in Vim, but not in Neovim