diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-06-19 23:46:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-19 23:46:43 +0200 |
commit | 954df0ea03ff93a888af97714732aca257820229 (patch) | |
tree | 8162f19d9910406d154f27f72991212707df7d92 /src/nvim/quickfix.c | |
parent | 487eaf8d456de17449ade6826ca0d13a64db576d (diff) | |
parent | 3f48b3a92f70829de434af484ed3aa25239fae9e (diff) | |
download | rneovim-954df0ea03ff93a888af97714732aca257820229.tar.gz rneovim-954df0ea03ff93a888af97714732aca257820229.tar.bz2 rneovim-954df0ea03ff93a888af97714732aca257820229.zip |
Merge #10245 from janlazo/vim-8.0.1723
vim-patch:8.0.{1723,1726,1735},8.1.{73,74}
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 0e4fa0afc6..3c744310b3 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -5368,8 +5368,11 @@ void ex_cexpr(exarg_T *eap) apply_autocmds(EVENT_QUICKFIXCMDPOST, (char_u *)au_name, curbuf->b_fname, true, curbuf); } - if (res > 0 && (eap->cmdidx == CMD_cexpr || eap->cmdidx == CMD_lexpr)) { - qf_jump(qi, 0, 0, eap->forceit); // display first error + if (res > 0 + && (eap->cmdidx == CMD_cexpr || eap->cmdidx == CMD_lexpr) + && qi == GET_LOC_LIST(curwin)) { + // Jump to the first error if autocmds didn't free the list. + qf_jump(qi, 0, 0, eap->forceit); } } else { EMSG(_("E777: String or List expected")); |