diff options
author | VVKot <volodymyr.kot.ua@gmail.com> | 2021-12-19 11:00:04 +0000 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-03-13 13:17:28 +0800 |
commit | c5e47e44aa139fa4f9e2f31fe591ddd6b5ca4909 (patch) | |
tree | 1e2d1af815d77f623371c60749c347f1346139cc /src/nvim/quickfix.c | |
parent | dc32a20503902a91ff7d6383521bf5dfef839876 (diff) | |
download | rneovim-c5e47e44aa139fa4f9e2f31fe591ddd6b5ca4909.tar.gz rneovim-c5e47e44aa139fa4f9e2f31fe591ddd6b5ca4909.tar.bz2 rneovim-c5e47e44aa139fa4f9e2f31fe591ddd6b5ca4909.zip |
vim-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 vim/vim#9303, closes vim/vim#9300)
https://github.com/vim/vim/commit/78a61068cf2c83e611d954a0fb413a09ad59dc07
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 2010322f43..e12a8bda2b 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -2475,7 +2475,7 @@ static qfline_T *qf_get_entry(qf_list_T *qfl, int errornr, int dir, int *new_qfi return qf_ptr; } -// 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) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT { @@ -2549,8 +2549,8 @@ static int jump_to_help_window(qf_info_T *qi, bool newwin, int *opened_window) return OK; } -/// 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 *qf_find_win_with_loclist(const qf_info_T *ll) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT @@ -2563,7 +2563,7 @@ static win_T *qf_find_win_with_loclist(const qf_info_T *ll) return NULL; } -// 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) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT { @@ -2619,7 +2619,7 @@ static void qf_goto_win_with_ll_file(win_T *use_win, int qf_fnum, qf_info_T *ll_ win_T *win = use_win; 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_IN_TAB(win2, curtab) { if (win2->w_buffer->b_fnum == qf_fnum) { win = win2; @@ -3887,8 +3887,8 @@ static int is_qf_win(const win_T *win, const qf_info_T *qi) return false; } -/// 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(const qf_info_T *qi) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT { @@ -3901,8 +3901,8 @@ static win_T *qf_find_win(const qf_info_T *qi) return NULL; } -// Find a quickfix buffer. -// Searches in windows opened in all the tabs. +/// Find a quickfix buffer. +/// Searches in windows opened in all the tab pages. static buf_T *qf_find_buf(qf_info_T *qi) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT { |