Hi Bram,
On Thu, Apr 20, 2017 at 1:45 PM, Bram Moolenaar <[email protected]> wrote:
>
> Patch 8.0.0574
> Problem: Get only one quickfix list after :caddbuf.
> Solution: Reset qf_multiline. (Yegappan Lakshmanan)
> Files: src/quickfix.c, src/testdir/test_quickfix.vim
>
>
> *** ../vim-8.0.0573/src/testdir/test_quickfix.vim 2017-04-02
> 15:15:44.825083189 +0200
> --- src/testdir/test_quickfix.vim 2017-04-20 22:37:45.246969386 +0200
> ***************
> *** 1057,1062 ****
> --- 1085,1109 ----
> call assert_equal(1, l[4].valid)
> call assert_equal('unittests/dbfacadeTest.py', bufname(l[4].bufnr))
>
> + " The following sequence of commands used to crash Vim
> + set efm=%W%m
> + cgetexpr ['msg1']
> + let l = getqflist()
> + call assert_equal(1, len(l), string(l))
> + call assert_equal('msg1', l[0].text)
> + set efm=%C%m
> + lexpr 'msg2'
> + let l = getloclist(0)
> + call assert_equal(1, len(l), string(l))
> + call assert_equal('msg2', l[0].text)
> + lopen
> + call setqflist([], 'r')
> + caddbuf
> + let l = getqflist()
> + call assert_equal(1, len(l), string(l))
> + call assert_equal('|| msg2', l[0].text)
> +
> + new | only
> let &efm = save_efm
> endfunc
>
> ***************
> *** 1975,1977 ****
> --- 2022,2036 ----
> call XfreeTests('c')
> call XfreeTests('l')
> endfunc
> +
> + func Test_no_reuse_mem()
>
This new function is not needed and is a duplicate. I have already
added these commands above with asserts.
Regards,
Yegappan
> + set efm=E,%W%m,
> + cgetexpr ['C']
> + set efm=%C%m
> + lexpr '0'
> + lopen
> + call setqflist([], 'r')
> + caddbuf
> +
> + set efm&
> + endfunc
> *** ../vim-8.0.0573/src/version.c 2017-04-20 22:32:19.857087086 +0200
> --- src/version.c 2017-04-20 22:42:48.896998852 +0200
> ***************
> *** 766,767 ****
> --- 766,769 ----
> { /* Add new patch number below this line */
> + /**/
> + 574,
> /**/
>
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.