mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00:00
api/window: add style="minimal" flag to nvim_open_win()
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "nvim/vim.h"
|
||||
#include "nvim/buffer.h"
|
||||
#include "nvim/cursor.h"
|
||||
#include "nvim/option.h"
|
||||
#include "nvim/window.h"
|
||||
#include "nvim/screen.h"
|
||||
#include "nvim/move.h"
|
||||
@@ -475,6 +476,10 @@ void nvim_win_set_config(Window window, Dictionary config, Error *err)
|
||||
win_config_float(win, fconfig);
|
||||
win->w_pos_changed = true;
|
||||
}
|
||||
if (fconfig.style == kWinStyleMinimal) {
|
||||
win_set_minimal_style(win);
|
||||
didset_window_options(win);
|
||||
}
|
||||
}
|
||||
|
||||
/// Return window configuration.
|
||||
|
Reference in New Issue
Block a user