mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 02:46:31 +00:00
fix(winbar): do not always assume cursor is valid. fixes #19458
This commit is contained in:
@@ -167,7 +167,7 @@ Window nvim_open_win(Buffer buffer, Boolean enter, Dict(float_config) *config, E
|
||||
|
||||
if (fconfig.style == kWinStyleMinimal) {
|
||||
win_set_minimal_style(wp);
|
||||
didset_window_options(wp);
|
||||
didset_window_options(wp, true);
|
||||
}
|
||||
return wp->handle;
|
||||
}
|
||||
@@ -209,7 +209,7 @@ void nvim_win_set_config(Window window, Dict(float_config) *config, Error *err)
|
||||
}
|
||||
if (fconfig.style == kWinStyleMinimal) {
|
||||
win_set_minimal_style(win);
|
||||
didset_window_options(win);
|
||||
didset_window_options(win, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user