Hi, On Sat, Apr 16, 2016 at 12:52 PM, Ramel Eshed <[email protected]> wrote: > Adding an item to the current quickfix list causes a jump to the first item > rather than keeping the current context: > > Download the attached file; > vim -u NONE -N > :source qf_test.vim > > -After adding 2 items, :cn, adding one more item and another :cn we are in (2 > of 3) instead of (3 of 3). >
The setqflist() function resets the index of the quickfix list so that it points to the first entry (even if entries are appended to the list). Due to a bug in the set_errorlist() function, the index is set to 1 instead of zero. That is why, you saw 2 of 3 instead of 1 of 3. - Yegappan -- -- 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.
