diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-07-07 21:35:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-07 21:35:55 +0200 |
commit | 524fe6205d01d8ced45bc4b00ed397add01a41bf (patch) | |
tree | 8fd4cb84d1149da6f636b5bd5bbb114df86b982b /src/nvim/buffer.c | |
parent | 28a86608a84672b3b64981c3b47b80b051cb5177 (diff) | |
parent | ef3e32d57ee0ebe3f425998216d8bf61ffdc28bb (diff) | |
download | rneovim-524fe6205d01d8ced45bc4b00ed397add01a41bf.tar.gz rneovim-524fe6205d01d8ced45bc4b00ed397add01a41bf.tar.bz2 rneovim-524fe6205d01d8ced45bc4b00ed397add01a41bf.zip |
Merge pull request #10090 from bfredl/floatpopup
api/window: add style="minimal" flag to disable unwanted UI features for simple floats
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 5678f518f5..cd31adbaff 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -2543,6 +2543,11 @@ void get_winopts(buf_T *buf) } else copy_winopt(&curwin->w_allbuf_opt, &curwin->w_onebuf_opt); + if (curwin->w_float_config.style == kWinStyleMinimal) { + didset_window_options(curwin); + win_set_minimal_style(curwin); + } + // Set 'foldlevel' to 'foldlevelstart' if it's not negative. if (p_fdls >= 0) { curwin->w_p_fdl = p_fdls; |