diff options
| author | Björn Linse <bjorn.linse@gmail.com> | 2021-06-01 10:05:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-01 10:05:58 +0200 |
| commit | 2faa1c361ba54b3c1f20771397f7b48ac4386cdc (patch) | |
| tree | fb9cd296624254180adff92840620fab754a28f4 /src/nvim/buffer_defs.h | |
| parent | 27c616d688c73c406726c949a3b664f52d4e4f04 (diff) | |
| parent | db6523cd130e239eea4cec4d3e60f2323bffe0fc (diff) | |
| download | rneovim-2faa1c361ba54b3c1f20771397f7b48ac4386cdc.tar.gz rneovim-2faa1c361ba54b3c1f20771397f7b48ac4386cdc.tar.bz2 rneovim-2faa1c361ba54b3c1f20771397f7b48ac4386cdc.zip | |
Merge pull request #14659 from seandewar/api-win-buf-noautocmd
api(nvim_open_win): Enable BufEnter autocmds by default like ordinary window; add "noautocmd" option to block BufEnter.
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 0c839ba12a..e3e538bd12 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -1090,6 +1090,7 @@ typedef struct { schar_T border_chars[8]; int border_hl_ids[8]; int border_attr[8]; + bool noautocmd; } FloatConfig; #define FLOAT_CONFIG_INIT ((FloatConfig){ .height = 0, .width = 0, \ @@ -1098,7 +1099,8 @@ typedef struct { .relative = 0, .external = false, \ .focusable = true, \ .zindex = kZIndexFloatDefault, \ - .style = kWinStyleUnused }) + .style = kWinStyleUnused, \ + .noautocmd = false }) // Structure to store last cursor position and topline. Used by check_lnums() // and reset_lnums(). |