diff options
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r-- | src/nvim/buffer_defs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index 5e700940b0..83b8531b8b 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -1006,7 +1006,7 @@ typedef enum { kFloatRelativeCursor = 2, } FloatRelative; -EXTERN const char *const float_relative_str[] INIT(= { "editor", "window", +EXTERN const char *const float_relative_str[] INIT(= { "editor", "win", "cursor" }); typedef enum { @@ -1016,6 +1016,7 @@ typedef enum { typedef struct { Window window; + lpos_T bufpos; int height, width; double row, col; FloatAnchor anchor; @@ -1026,6 +1027,7 @@ typedef struct { } FloatConfig; #define FLOAT_CONFIG_INIT ((FloatConfig){ .height = 0, .width = 0, \ + .bufpos = { -1, 0 }, \ .row = 0, .col = 0, .anchor = 0, \ .relative = 0, .external = false, \ .focusable = true, \ |