Merge pull request #15253 from spywhere/float-win-scl-fix

Fix sign column auto with minimum break floating window minimal style
This commit is contained in:
Björn Linse
2021-08-10 22:14:52 +02:00
committed by GitHub
2 changed files with 129 additions and 1 deletions

View File

@@ -676,7 +676,7 @@ void win_set_minimal_style(win_T *wp)
}
// signcolumn: use 'auto'
if (wp->w_p_scl[0] != 'a') {
if (wp->w_p_scl[0] != 'a' || STRLEN(wp->w_p_scl) >= 8) {
xfree(wp->w_p_scl);
wp->w_p_scl = (char_u *)xstrdup("auto");
}