Commit f71b2ac
authored
fix(ui): prevent style='minimal' from resetting window options on float update (#373)
Move `style = 'minimal'` from `base_config()` to `open_win()` so it
only applies during initial window creation via `nvim_open_win`.
Previously, `base_config()` included `style = 'minimal'` which was
shared by both `open_win()` and `update()`. Every time `update()` called
`nvim_win_set_config`, it re-applied `style = 'minimal'`, resetting
window-local options like `signcolumn` and `foldcolumn` back to their
minimal defaults. This caused the float window to lose its left gutter
(signcolumn + foldcolumn) after any resize or dimension update, unlike
the split layout which correctly retained these options.1 parent 32860d7 commit f71b2ac
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
| |||
114 | 113 | | |
115 | 114 | | |
116 | 115 | | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments