From ef3e32d57ee0ebe3f425998216d8bf61ffdc28bb Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Thu, 30 May 2019 17:46:41 +0200 Subject: api/window: add style="minimal" flag to nvim_open_win() --- src/nvim/buffer.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/nvim/buffer.c') 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; -- cgit