diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-05 23:04:54 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-06 20:26:30 -0400 |
commit | 2be853d486be2cac3b04efbf425afac2dd9361a3 (patch) | |
tree | 9e3206063676ecf5353794d343c8fdd477fc7ee5 /src/nvim/quickfix.c | |
parent | c0d26ba4f9a5a531e062fdfe96dddaeed56cdcc2 (diff) | |
download | rneovim-2be853d486be2cac3b04efbf425afac2dd9361a3.tar.gz rneovim-2be853d486be2cac3b04efbf425afac2dd9361a3.tar.bz2 rneovim-2be853d486be2cac3b04efbf425afac2dd9361a3.zip |
lint
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index d719f2e0a1..1eb6b3b421 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -1140,7 +1140,7 @@ qf_init_ext( } if (state.fd == NULL || !ferror(state.fd)) { if (qfl->qf_index == 0) { - /* no valid entry found */ + // no valid entry found qfl->qf_ptr = qfl->qf_start; qfl->qf_index = 1; qfl->qf_nonevalid = true; @@ -1150,7 +1150,7 @@ qf_init_ext( qfl->qf_ptr = qfl->qf_start; } } - /* return number of matches */ + // return number of matches retval = qfl->qf_count; goto qf_init_end; } @@ -2597,8 +2597,9 @@ void ex_cclose(exarg_T *eap) /* Find existing quickfix window and close it. */ win = qf_find_win(qi); - if (win != NULL) + if (win != NULL) { win_close(win, false); + } } /* @@ -4862,10 +4863,12 @@ void ex_helpgrep(exarg_T *eap) /* If the help window is not opened or if it already points to the * correct location list, then free the new location list. */ if (!bt_help(curwin->w_buffer) || curwin->w_llist == qi) { - if (new_qi) + if (new_qi) { ll_free_all(&qi); - } else if (curwin->w_llist == NULL) + } + } else if (curwin->w_llist == NULL) { curwin->w_llist = qi; + } } } |