aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/ui.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-04-08 11:09:56 +0800
committerzeertzjq <zeertzjq@outlook.com>2025-04-08 13:06:19 +0800
commit36d143e70722848855107ff05ab3997857b0c388 (patch)
tree7777282a80dee2e3cb14c389c0f6b318d06163a3 /runtime/lua/vim/ui.lua
parent8af9f8ab5ecd59df52aed9019e8ecc9f8101ee7d (diff)
downloadrneovim-36d143e70722848855107ff05ab3997857b0c388.tar.gz
rneovim-36d143e70722848855107ff05ab3997857b0c388.tar.bz2
rneovim-36d143e70722848855107ff05ab3997857b0c388.zip
vim-patch:9.1.1253: abort when closing window with attached quickfix data
Problem: If win_close() is called with a window that has quickfix stack attached to it, the corresponding quickfix buffer will be closed and freed after the buffer was already closed. At that time curwin->w_buffer points to NULL, which the CHECK_CURBUF will catch and abort if ABORT_ON_ERROR is defined Solution: in wipe_qf_buffer() temporarily point curwin->w_buffer back to curbuf, the window will be closed anyhow, so it shouldn't matter that curbuf->b_nwindows isn't incremented. closes: vim/vim#16993 closes: vim/vim#16985 https://github.com/vim/vim/commit/ce80c59bfd3c0087a354ee549639ca60fa192fba Co-authored-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
Diffstat (limited to 'runtime/lua/vim/ui.lua')
0 files changed, 0 insertions, 0 deletions