diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-17 23:24:54 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-19 01:36:00 -0400 |
commit | 5c2feb690e5b694a268566d1e168cf53ee4fda8d (patch) | |
tree | 882fc185c962ccc3c06b600537e14251703f391b /src | |
parent | a6707f5791ddfa3872fa22bc2c384847976d2fee (diff) | |
download | rneovim-5c2feb690e5b694a268566d1e168cf53ee4fda8d.tar.gz rneovim-5c2feb690e5b694a268566d1e168cf53ee4fda8d.tar.bz2 rneovim-5c2feb690e5b694a268566d1e168cf53ee4fda8d.zip |
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.
https://github.com/vim/vim/commit/d6b01a2d3884ee0abe10aad161f584889a496e3f
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/quickfix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 304df6f99b..3c744310b3 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -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); } |