diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-09-13 00:09:20 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-09-13 00:14:04 -0400 |
commit | 8ba492e4e2bff7104cdd1c3bcca8831e094ad193 (patch) | |
tree | 9ff488f827bcce04b25933420e853aed41c803ea | |
parent | 3855204f5860ff2a66133541ff7593f0c2606a75 (diff) | |
download | rneovim-8ba492e4e2bff7104cdd1c3bcca8831e094ad193.tar.gz rneovim-8ba492e4e2bff7104cdd1c3bcca8831e094ad193.tar.bz2 rneovim-8ba492e4e2bff7104cdd1c3bcca8831e094ad193.zip |
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
-rw-r--r-- | src/nvim/quickfix.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |