Yegappan Lakshmanan wrote: > On Thu, Apr 20, 2017 at 1:45 PM, Bram Moolenaar <b...@moolenaar.net> 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.
OK, I'll remove this function then. I'm still trying to figure out a memory leak in Test_qf_free(). Didn't get further than pinpointing it to this function. Not sure when I'll have time to dig deeper. -- -rwxr-xr-x 1 root 24 Oct 29 1929 /bin/ed -rwxr-xr-t 4 root 131720 Jan 1 1970 /usr/ucb/vi -rwxr-xr-x 1 root 5.89824e37 Oct 22 1990 /usr/bin/emacs /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.