Bram Moolenaar wrote: > > Thanks for explaining. So the '] mark is on the last byte of the > yanked text. I hesitate to change this, since quite a few Vim > functions with byte positions, and the number of bytes between '[ and > '] could be used. > > So we can change virtcol(). I'll make a patch for that. >
Thank you. Patch 8.0.250 fixes (only) the first 3 examples/test cases of https://github.com/vim/vim/issues/277#issuecomment-274372013 but unfortunately not the last 2 examples. Yanking the first 3 visual columns [1,3] of 😀a a😀 the output of :echo [virtcol("'["),virtcol("']")] is [2,3] and [1,4] respectively. Bye C. Ludwig -- -- 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.
