aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-02-27 11:41:52 -0500
committerJames McCoy <jamessan@jamessan.com>2017-02-27 11:41:52 -0500
commita989851e3b66cd1c14c6c674b83f302648df0b82 (patch)
treeb72fbf5e641bc2558ac5f34f9bbc7f4cc57e4b27
parentc9c3f92b49780e6c000afc6c17a817505d6f56ed (diff)
downloadrneovim-a989851e3b66cd1c14c6c674b83f302648df0b82.tar.gz
rneovim-a989851e3b66cd1c14c6c674b83f302648df0b82.tar.bz2
rneovim-a989851e3b66cd1c14c6c674b83f302648df0b82.zip
lint
-rw-r--r--src/nvim/quickfix.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index d8bbcb9447..a4c3ec2430 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -3878,12 +3878,13 @@ int get_errorlist(win_T *wp, int qf_idx, list_T *list)
}
if (qf_idx >= qi->qf_listcount
- || qi->qf_lists[qf_idx].qf_count == 0)
+ || qi->qf_lists[qf_idx].qf_count == 0) {
return FAIL;
+ }
qfp = qi->qf_lists[qf_idx].qf_start;
- for (i = 1; !got_int && i <= qi->qf_lists[qf_idx].qf_count; ++i) {
- /* Handle entries with a non-existing buffer number. */
+ for (i = 1; !got_int && i <= qi->qf_lists[qf_idx].qf_count; i++) {
+ // Handle entries with a non-existing buffer number.
bufnum = qfp->qf_fnum;
if (bufnum != 0 && (buflist_findnr(bufnum) == NULL))
bufnum = 0;