vim-patch:8.1.0074: crash when running quickfix tests

Problem:    Crash when running quickfix tests.
Solution:   Do not alloc a new location list when checking for the reference
            to be still valid.
d6b01a2d38
This commit is contained in:
Jan Edmund Lazo 2019-06-17 23:24:54 -04:00
parent a6707f5791
commit 5c2feb690e

View File

@ -5370,7 +5370,7 @@ void ex_cexpr(exarg_T *eap)
}
if (res > 0
&& (eap->cmdidx == CMD_cexpr || eap->cmdidx == CMD_lexpr)
&& qi == ll_get_or_alloc_list(curwin)) {
&& qi == GET_LOC_LIST(curwin)) {
// Jump to the first error if autocmds didn't free the list.
qf_jump(qi, 0, 0, eap->forceit);
}