fix(winbar): do not always assume cursor is valid. fixes #19458

This commit is contained in:
bfredl
2022-08-13 10:45:21 +02:00
parent a850b15e19
commit 33f4ba7379
6 changed files with 119 additions and 67 deletions

View File

@@ -2596,7 +2596,7 @@ void get_winopts(buf_T *buf)
}
if (curwin->w_float_config.style == kWinStyleMinimal) {
didset_window_options(curwin);
didset_window_options(curwin, false);
win_set_minimal_style(curwin);
}
@@ -2604,7 +2604,7 @@ void get_winopts(buf_T *buf)
if (p_fdls >= 0) {
curwin->w_p_fdl = p_fdls;
}
didset_window_options(curwin);
didset_window_options(curwin, false);
}
/// Find the mark for the buffer 'buf' for the current window.