vim-patch:8.0.1772: quickfix: mixup of FALSE and FAIL, returning -1

Problem:    Quickfix: mixup of FALSE and FAIL, returning -1.
Solution:   Use FAIL and INVALID_QFIDX. (Yegappan Lakshmanan)
29ce409bfc
This commit is contained in:
Jan Edmund Lazo 2019-09-13 00:09:20 -04:00
parent 3855204f58
commit 8ba492e4e2
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -2209,7 +2209,7 @@ static int qf_jump_edit_buffer(qf_info_T *qi, qfline_T *qf_ptr, int forceit,
// set b_p_ro flag).
if (!can_abandon(curbuf, forceit)) {
no_write_message();
retval = false;
retval = FAIL;
} else {
retval = do_ecmd(qf_ptr->qf_fnum, NULL, NULL, NULL, (linenr_T)1,
ECMD_HIDE + ECMD_SET_HELP,
@ -2242,7 +2242,7 @@ static int qf_jump_edit_buffer(qf_info_T *qi, qfline_T *qf_ptr, int forceit,
}
if (*abort) {
retval = false;
retval = FAIL;
}
}
@ -4532,7 +4532,7 @@ int get_errorlist(const qf_info_T *qi_arg, win_T *wp, int qf_idx, list_T *list)
}
}
if (qf_idx == -1) {
if (qf_idx == INVALID_QFIDX) {
qf_idx = qi->qf_curlist;
}