comparison src/window.c @ 26458:824fe105f5b9 v8.2.3759

patch 8.2.3759: quickfix buffer becomes hidden while still in a window Commit: https://github.com/vim/vim/commit/78a61068cf2c83e611d954a0fb413a09ad59dc07 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Wed Dec 8 20:03:31 2021 +0000 patch 8.2.3759: quickfix buffer becomes hidden while still in a window Problem: Quickfix buffer becomes hidden while still in a window. Solution: Check if the closed window is the last window showing the quickfix buffer. (Yegappan Lakshmanan, closes #9303, closes #9300)
author Bram Moolenaar <Bram@vim.org>
date Wed, 08 Dec 2021 21:15:03 +0100
parents 7606d9b13068
children 2fc13817b100
comparison
equal deleted inserted replaced
26457:9b0883e8653c 26458:824fe105f5b9
2431 if (win->w_buffer != NULL) 2431 if (win->w_buffer != NULL)
2432 reset_synblock(win); 2432 reset_synblock(win);
2433 #endif 2433 #endif
2434 2434
2435 #ifdef FEAT_QUICKFIX 2435 #ifdef FEAT_QUICKFIX
2436 // When the quickfix/location list window is closed, unlist the buffer. 2436 // When a quickfix/location list window is closed and the buffer is
2437 if (win->w_buffer != NULL && bt_quickfix(win->w_buffer)) 2437 // displayed in only one window, then unlist the buffer.
2438 if (win->w_buffer != NULL && bt_quickfix(win->w_buffer)
2439 && win->w_buffer->b_nwindows == 1)
2438 win->w_buffer->b_p_bl = FALSE; 2440 win->w_buffer->b_p_bl = FALSE;
2439 #endif 2441 #endif
2440 2442
2441 // Close the link to the buffer. 2443 // Close the link to the buffer.
2442 if (win->w_buffer != NULL) 2444 if (win->w_buffer != NULL)