From 8ba492e4e2bff7104cdd1c3bcca8831e094ad193 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 13 Sep 2019 00:09:20 -0400 Subject: 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) https://github.com/vim/vim/commit/29ce409bfca52bb8a07e2975d06fd788458e9861 --- src/nvim/quickfix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index be6e48465f..8d76863d90 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -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; } -- cgit