mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46: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);
|
qf_list_changed(qi, qi->qf_curlist);
|
||||||
}
|
}
|
||||||
if (au_name != NULL) {
|
if (au_name != NULL) {
|
||||||
apply_autocmds(EVENT_QUICKFIXCMDPOST, au_name,
|
apply_autocmds(EVENT_QUICKFIXCMDPOST, au_name, curbuf->b_fname, true,
|
||||||
curbuf->b_fname, TRUE, curbuf);
|
curbuf);
|
||||||
if (qi != NULL && qi->qf_curlist < qi->qf_listcount)
|
if (qi != NULL && qi->qf_curlist < qi->qf_listcount) {
|
||||||
res = qi->qf_lists[qi->qf_curlist].qf_count;
|
res = qi->qf_lists[qi->qf_curlist].qf_count;
|
||||||
else
|
} else {
|
||||||
res = 0;
|
res = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (res > 0 && !eap->forceit)
|
if (res > 0 && !eap->forceit)
|
||||||
qf_jump(qi, 0, 0, FALSE); /* display first error */
|
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);
|
qf_list_changed(qi, qi->qf_curlist);
|
||||||
}
|
}
|
||||||
unsigned save_qfid = 0;
|
unsigned save_qfid = 0;
|
||||||
if (qi != NULL)
|
if (qi != NULL) {
|
||||||
save_qfid = qi->qf_lists[qi->qf_curlist].qf_id;
|
save_qfid = qi->qf_lists[qi->qf_curlist].qf_id;
|
||||||
|
}
|
||||||
if (au_name != NULL) {
|
if (au_name != NULL) {
|
||||||
apply_autocmds(EVENT_QUICKFIXCMDPOST, au_name, NULL, false, curbuf);
|
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,
|
fname,
|
||||||
NULL,
|
NULL,
|
||||||
duplicate_name ? 0 : buf->b_fnum,
|
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].lnum + lnum,
|
||||||
regmatch->startpos[0].col + 1,
|
regmatch->startpos[0].col + 1,
|
||||||
false, // vis_col
|
false, // vis_col
|
||||||
@@ -4122,9 +4125,10 @@ void ex_vimgrep(exarg_T *eap)
|
|||||||
redraw_for_dummy = TRUE;
|
redraw_for_dummy = TRUE;
|
||||||
|
|
||||||
buf = vgr_load_dummy_buf(fname, dirname_start, dirname_now);
|
buf = vgr_load_dummy_buf(fname, dirname_start, dirname_now);
|
||||||
} else
|
} else {
|
||||||
/* Use existing, loaded buffer. */
|
// Use existing, loaded buffer.
|
||||||
using_dummy = FALSE;
|
using_dummy = false;
|
||||||
|
}
|
||||||
|
|
||||||
// Check whether the quickfix list is still valid
|
// Check whether the quickfix list is still valid
|
||||||
if (!vgr_qflist_valid(qi, save_qfid, cur_qf_start, loclist_cmd,
|
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;
|
eap->line2 = buf->b_ml.ml_line_count;
|
||||||
}
|
}
|
||||||
if (eap->line1 < 1 || eap->line1 > 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));
|
EMSG(_(e_invrange));
|
||||||
else {
|
} else {
|
||||||
char_u *qf_title = qf_cmdtitle(*eap->cmdlinep);
|
char_u *qf_title = qf_cmdtitle(*eap->cmdlinep);
|
||||||
|
|
||||||
if (buf->b_sfname) {
|
if (buf->b_sfname) {
|
||||||
|
Reference in New Issue
Block a user