aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-20 21:56:36 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-20 22:07:45 -0400
commit7b2fd2156062590b04c4905a0cd9ea8be3288f7a (patch)
treea30550396ebc3901ebc1ac6a0c10225ad79ae773 /src/nvim/quickfix.c
parent87f31b4c869c49529469e189d8f908398de7755c (diff)
downloadrneovim-7b2fd2156062590b04c4905a0cd9ea8be3288f7a.tar.gz
rneovim-7b2fd2156062590b04c4905a0cd9ea8be3288f7a.tar.bz2
rneovim-7b2fd2156062590b04c4905a0cd9ea8be3288f7a.zip
Revert "vim-patch:8.1.1015: quickfix buffer shows up in list, can't get buffer number"
This reverts commit 4cd69151cf39cd4c3f083da2275f17206dcf5bc3.
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index 2778179691..a64c236306 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -5596,8 +5596,7 @@ enum {
QF_GETLIST_SIZE = 0x80,
QF_GETLIST_TICK = 0x100,
QF_GETLIST_FILEWINID = 0x200,
- QF_GETLIST_QFBUFNR = 0x400,
- QF_GETLIST_ALL = 0x7FF,
+ QF_GETLIST_ALL = 0x3FF,
};
/// Parse text from 'di' and return the quickfix list items.
@@ -5652,15 +5651,6 @@ static int qf_winid(qf_info_T *qi)
return 0;
}
-// Returns the number of the buffer displayed in the quickfix/location list
-// window. If there is no buffer associated with the list, then returns 0.
-static int qf_getprop_qfbufnr(const qf_info_T *qi, dict_T *retdict)
- FUNC_ATTR_NONNULL_ARG(2)
-{
- return tv_dict_add_nr(retdict, S_LEN("qfbufnr"),
- (qi == NULL) ? 0 : qi->qf_bufnr);
-}
-
/// Convert the keys in 'what' to quickfix list property flags.
static int qf_getprop_keys2flags(const dict_T *what, bool loclist)
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT
@@ -5704,9 +5694,6 @@ static int qf_getprop_keys2flags(const dict_T *what, bool loclist)
if (loclist && tv_dict_find(what, S_LEN("filewinid")) != NULL) {
flags |= QF_GETLIST_FILEWINID;
}
- if (tv_dict_find(what, S_LEN("qfbufnr")) != NULL) {
- flags |= QF_GETLIST_QFBUFNR;
- }
return flags;
}
@@ -5798,9 +5785,6 @@ static int qf_getprop_defaults(qf_info_T *qi,
if ((status == OK) && locstack && (flags & QF_GETLIST_FILEWINID)) {
status = tv_dict_add_nr(retdict, S_LEN("filewinid"), 0);
}
- if ((status == OK) && (flags & QF_GETLIST_QFBUFNR)) {
- status = qf_getprop_qfbufnr(qi, retdict);
- }
return status;
}
@@ -5935,9 +5919,6 @@ int qf_get_properties(win_T *wp, dict_T *what, dict_T *retdict)
if ((status == OK) && (wp != NULL) && (flags & QF_GETLIST_FILEWINID)) {
status = qf_getprop_filewinid(wp, qi, retdict);
}
- if ((status == OK) && (flags & QF_GETLIST_QFBUFNR)) {
- status = qf_getprop_qfbufnr(qi, retdict);
- }
return status;
}