mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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)
This commit is contained in:
committed by
Bram Moolenaar
parent
2172bff364
commit
78a61068cf
@@ -2818,7 +2818,7 @@ qf_get_entry(
|
||||
}
|
||||
|
||||
/*
|
||||
* Find a window displaying a Vim help file.
|
||||
* Find a window displaying a Vim help file in the current tab page.
|
||||
*/
|
||||
static win_T *
|
||||
qf_find_help_win(void)
|
||||
@@ -2893,8 +2893,8 @@ jump_to_help_window(qf_info_T *qi, int newwin, int *opened_window)
|
||||
}
|
||||
|
||||
/*
|
||||
* Find a non-quickfix window in the current tabpage using the given location
|
||||
* list stack.
|
||||
* Find a non-quickfix window using the given location list stack in the
|
||||
* current tabpage.
|
||||
* Returns NULL if a matching window is not found.
|
||||
*/
|
||||
static win_T *
|
||||
@@ -2910,7 +2910,7 @@ qf_find_win_with_loclist(qf_info_T *ll)
|
||||
}
|
||||
|
||||
/*
|
||||
* Find a window containing a normal buffer
|
||||
* Find a window containing a normal buffer in the current tab page.
|
||||
*/
|
||||
static win_T *
|
||||
qf_find_win_with_normal_buf(void)
|
||||
@@ -2981,7 +2981,7 @@ qf_goto_win_with_ll_file(win_T *use_win, int qf_fnum, qf_info_T *ll_ref)
|
||||
|
||||
if (win == NULL)
|
||||
{
|
||||
// Find the window showing the selected file
|
||||
// Find the window showing the selected file in the current tab page.
|
||||
FOR_ALL_WINDOWS(win)
|
||||
if (win->w_buffer->b_fnum == qf_fnum)
|
||||
break;
|
||||
@@ -4394,8 +4394,8 @@ is_qf_win(win_T *win, qf_info_T *qi)
|
||||
}
|
||||
|
||||
/*
|
||||
* Find a window displaying the quickfix/location stack 'qi'
|
||||
* Only searches in the current tabpage.
|
||||
* Find a window displaying the quickfix/location stack 'qi' in the current tab
|
||||
* page.
|
||||
*/
|
||||
static win_T *
|
||||
qf_find_win(qf_info_T *qi)
|
||||
@@ -4410,7 +4410,7 @@ qf_find_win(qf_info_T *qi)
|
||||
|
||||
/*
|
||||
* Find a quickfix buffer.
|
||||
* Searches in windows opened in all the tabs.
|
||||
* Searches in windows opened in all the tab pages.
|
||||
*/
|
||||
static buf_T *
|
||||
qf_find_buf(qf_info_T *qi)
|
||||
|
Reference in New Issue
Block a user