I wrote: > Ramel Eshed wrote: > > > > > 1) Actually, there is a bug here which is not exactly what I've > > > > described earlier. The issue is that :call setqflist([]), instead of > > > > adding one more list after the last list, will clear the next list and > > > > delete the ones after. For example: let's say I used :grep 4 times so > > > > I have now 4 lists. Now, if I do :colder 3, the first list becomes the > > > > current list. :call setqflist([]) will empty list 2, and delete lists > > > > 3 and 4. > > > > > > We do remove newer lists when adding a new list before the end, but in > > > this case it should not happen. > > I'm not sure I understand. Is removing all the newer lists are the > > expected behavior? why? and why is it different here? > > Removing newer lists is what happens when inserting a list. But you are > not inserting here, you are clearing it.
Somehow I managed to read that you were using: call setqflist([], 'r') Which clears the list. But it appears you were doing: call setqflist([]) Which appends a new list. Then all following (newer) lists are deleted. That's how it is supposed to work. -- ASCII stupid question, get a stupid ANSI. /// 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.