mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
a6707f5791
commit
5c2feb690e
@ -5370,7 +5370,7 @@ void ex_cexpr(exarg_T *eap)
|
|||||||
}
|
}
|
||||||
if (res > 0
|
if (res > 0
|
||||||
&& (eap->cmdidx == CMD_cexpr || eap->cmdidx == CMD_lexpr)
|
&& (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.
|
// Jump to the first error if autocmds didn't free the list.
|
||||||
qf_jump(qi, 0, 0, eap->forceit);
|
qf_jump(qi, 0, 0, eap->forceit);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user