Hi, On Sun, Jul 26, 2015 at 5:06 AM, Drew Neil <andrew.jr.n...@gmail.com> wrote: > Using the same example as before, with this text: > > http://example.com > http://example.org > http://example.net > http://example.com http://example.org http://example.net > > This time running the commands: > > :vimgrep /http\zs:/g % > :cdo normal o > > That should create a new empty line after each match in the quickfix list. > To my surprise this worked just fine, producing this output: > > http://example.com > > http://example.org > > http://example.net > > http://example.com http://example.org http://example.net > > > > [eof - three blank lines before end of file] > > I was expecting this to suffer from a similar problem as the previous > example. This time it’s the line numbers (not column numbers) that would > fall out of sync with the matches. But it doesn’t happen. Here’s the > addresses in the quickfix list before running those commands: > > 1 col 5 > 2 col 5 > 3 col 5 > 4 col 5 > 4 col 24 > 4 col 43 > > After running the `:cdo normal o` command, the quickfix list contains these > addresses: > > 1 col 5 > 3 col 5 > 5 col 5 > 7 col 5 > 7 col 24 > 7 col 43 > > This suggests that the quickfix list is somehow updated between edits that > modify the number of lines in a file. Would it be possible to update the > quickfix list could also between edits that modify the number of characters > in a line? >
As I mentioned in my previous e-mail, the qf_mark_adjust() function is used to adjust the line numbers in the quickfix list whenever a line is added or removed from a file. But when a line is modified, the column numbers in the quickfix list are not currently updated. This is a bug in the quickfix functionality and needs to be fixed. - 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.