diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-05-27 22:10:42 +0100 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-06-01 03:05:04 +0100 |
commit | 802f8429d5d908457658e4b9859d8ed110bc0247 (patch) | |
tree | 7436cfb300621c512d8580ca07e3cb591837831d /src/nvim/buffer_defs.h | |
parent | 27c616d688c73c406726c949a3b664f52d4e4f04 (diff) | |
download | rneovim-802f8429d5d908457658e4b9859d8ed110bc0247.tar.gz rneovim-802f8429d5d908457658e4b9859d8ed110bc0247.tar.bz2 rneovim-802f8429d5d908457658e4b9859d8ed110bc0247.zip |
api(nvim_open_win): add "noautocmd" option
This option, when set, stops nvim_open_win() from potentially firing
buffer-related autocmd events
(BufEnter, BufLeave and BufWinEnter in the case of nvim_open_win()).
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(). |