mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
lint
This commit is contained in:
@@ -3440,13 +3440,14 @@ void ex_make(exarg_T *eap)
|
||||
qf_list_changed(qi, qi->qf_curlist);
|
||||
}
|
||||
if (au_name != NULL) {
|
||||
apply_autocmds(EVENT_QUICKFIXCMDPOST, au_name,
|
||||
curbuf->b_fname, TRUE, curbuf);
|
||||
if (qi != NULL && qi->qf_curlist < qi->qf_listcount)
|
||||
apply_autocmds(EVENT_QUICKFIXCMDPOST, au_name, curbuf->b_fname, true,
|
||||
curbuf);
|
||||
if (qi != NULL && qi->qf_curlist < qi->qf_listcount) {
|
||||
res = qi->qf_lists[qi->qf_curlist].qf_count;
|
||||
else
|
||||
} else {
|
||||
res = 0;
|
||||
}
|
||||
}
|
||||
if (res > 0 && !eap->forceit)
|
||||
qf_jump(qi, 0, 0, FALSE); /* display first error */
|
||||
|
||||
@@ -3799,8 +3800,9 @@ void ex_cfile(exarg_T *eap)
|
||||
qf_list_changed(qi, qi->qf_curlist);
|
||||
}
|
||||
unsigned save_qfid = 0;
|
||||
if (qi != NULL)
|
||||
if (qi != NULL) {
|
||||
save_qfid = qi->qf_lists[qi->qf_curlist].qf_id;
|
||||
}
|
||||
if (au_name != NULL) {
|
||||
apply_autocmds(EVENT_QUICKFIXCMDPOST, au_name, NULL, false, curbuf);
|
||||
}
|
||||
@@ -3947,7 +3949,8 @@ static bool vgr_match_buflines(qf_info_T *qi, char_u *fname, buf_T *buf,
|
||||
fname,
|
||||
NULL,
|
||||
duplicate_name ? 0 : buf->b_fnum,
|
||||
ml_get_buf(buf, regmatch->startpos[0].lnum + lnum, false),
|
||||
ml_get_buf(buf, regmatch->startpos[0].lnum + lnum,
|
||||
false),
|
||||
regmatch->startpos[0].lnum + lnum,
|
||||
regmatch->startpos[0].col + 1,
|
||||
false, // vis_col
|
||||
@@ -4122,9 +4125,10 @@ void ex_vimgrep(exarg_T *eap)
|
||||
redraw_for_dummy = TRUE;
|
||||
|
||||
buf = vgr_load_dummy_buf(fname, dirname_start, dirname_now);
|
||||
} else
|
||||
/* Use existing, loaded buffer. */
|
||||
using_dummy = FALSE;
|
||||
} else {
|
||||
// Use existing, loaded buffer.
|
||||
using_dummy = false;
|
||||
}
|
||||
|
||||
// Check whether the quickfix list is still valid
|
||||
if (!vgr_qflist_valid(qi, save_qfid, cur_qf_start, loclist_cmd,
|
||||
@@ -5228,9 +5232,9 @@ void ex_cbuffer(exarg_T *eap)
|
||||
eap->line2 = buf->b_ml.ml_line_count;
|
||||
}
|
||||
if (eap->line1 < 1 || eap->line1 > buf->b_ml.ml_line_count
|
||||
|| eap->line2 < 1 || eap->line2 > buf->b_ml.ml_line_count)
|
||||
|| eap->line2 < 1 || eap->line2 > buf->b_ml.ml_line_count) {
|
||||
EMSG(_(e_invrange));
|
||||
else {
|
||||
} else {
|
||||
char_u *qf_title = qf_cmdtitle(*eap->cmdlinep);
|
||||
|
||||
if (buf->b_sfname) {
|
||||
|
Reference in New Issue
Block a user