I've got an autocommand that triggers on TextChanged and does some processing (removing trailing whitespace) on the just-modified lines, which it finds via the '[ and '] marks.
The problem is, J (join lines) doesn't update those marks. In fact, they're not even updated to account for the fact that a line was just removed from the buffer. If they used to point to lines 77 and 78, they still point to lines 77 and 78 even if I just removed line 60 by joining it to line 59 (letter marks are updated, so they still point to the same text). This leads to errors in some cases, and operating on lines I didn't intend to in others. Somewhat comically, undoing a join does update the '[ '] marks (so they point to the un-joined lines). Sounds like a bug to me. Or is this actually intended? Thanks, Bob Gardner (My ViM version is 7.4.052) -- -- 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/groups/opt_out.
