diff options
| author | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2026-03-25 10:47:12 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-25 10:47:12 +0000 |
| commit | b233f71b1bd688363d3efd8f550dbf44cc4e841c (patch) | |
| tree | 9b5945701c254f6b53f158f02de6e50f39862c36 /scripts/lintcommit.lua | |
| parent | 4d04d0123d2571391a00b87f7ee70f987fb7cedd (diff) | |
| download | rneovim-b233f71b1bd688363d3efd8f550dbf44cc4e841c.tar.gz rneovim-b233f71b1bd688363d3efd8f550dbf44cc4e841c.tar.bz2 rneovim-b233f71b1bd688363d3efd8f550dbf44cc4e841c.zip | |
fix: :ball w_locked check, reset b_nwindows in free_all_mem() #38484
Problem:
- Small error in port of v9.1.0678, causing :ball to check w_locked for the
wrong window.
- After #27439, free_all_mem() may not wipe out buffers that were open in more
than one window before windows were freed.
Solution:
- Check win_locked() for wp in ex_buffer_all(), not curwin.
- Set b_nwindows to 0 in free_all_mem() before calling close_buffer().
Ref: https://github.com/neovim/neovim/pull/38473#issuecomment-4125117681
No need to block these fixes on that.
free_all_mem() change also looks like it fixed the existing "N lua references were
leaked!" warnings on the CI.
Diffstat (limited to 'scripts/lintcommit.lua')
0 files changed, 0 insertions, 0 deletions