0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.3254: win_gettype() does not recognize a quickfix window

Problem:    win_gettype() does not recognize a quickfix window.
Solution:   Add "quickfix" and "loclist". (Yegappan Lakshmanan, closes #8676)
This commit is contained in:
Yegappan Lakshmanan
2021-07-31 12:43:23 +02:00
committed by Bram Moolenaar
parent 890ee4e2be
commit 28d8421bfb
5 changed files with 32 additions and 5 deletions

View File

@@ -953,6 +953,12 @@ f_win_gettype(typval_T *argvars, typval_T *rettv)
else if (wp == curwin && cmdwin_type != 0)
rettv->vval.v_string = vim_strsave((char_u *)"command");
#endif
#ifdef FEAT_QUICKFIX
else if (bt_quickfix(wp->w_buffer))
rettv->vval.v_string = vim_strsave((char_u *)
(wp->w_llist_ref != NULL ? "loclist" : "quickfix"));
#endif
}
/*