Commit f1a45ac
authored
fix: ensure
I believe this was a regression introduced in
8c6cc07,
but currently when you call `Border:change_title` you'll see:
```
E5108: Error executing lua .../packer/start/plenary.nvim/lua/plenary/window/border.lua:57: attempt to in
dex local 'thickness' (a nil value)
```
This is because after `Border:__align_calc_config` is called, the new
`border_win_options` were never actually updated in the metatable. This
ensure that after the table is merged that it's correctly updated so
that when `Border:change_title` is called, it still has the correct
reference to these.Border:change_title doesn't error (#256)1 parent 239c16d commit f1a45ac
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
193 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
194 | 195 | | |
| 196 | + | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| |||
201 | 203 | | |
202 | 204 | | |
203 | 205 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | 206 | | |
208 | 207 | | |
209 | 208 | | |
| |||
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
220 | | - | |
221 | | - | |
222 | 219 | | |
223 | 220 | | |
224 | 221 | | |
| |||
0 commit comments