api/window: add style="minimal" flag to nvim_open_win()

This commit is contained in:
Björn Linse
2019-05-30 17:46:41 +02:00
parent 3c860e25e9
commit ef3e32d57e
10 changed files with 237 additions and 30 deletions

View File

@@ -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;