ZyX wrote:
> Consider the following script:
> =============================
> :function Op(t)
> echom col("']") col("'>")
> endfunction
> :set operatorfunc=Op
> :redir! > messages.log
> i»»»»^[0v$g@0g@$:redir END
> :qa!
> =============================
> (replace ^[ with actual escape or just use attached file). It will
> print «7 9» and «8 9» into messages.log, while expected either «9 9»
> and «8 9» (because «$» does not take EOL), «8 9» and «8 9» (so that
> «']» will always be positioned at the last byte of the last
> character), or «7 9» and «7 9» (if positioning on the last character
> on the text means positioning on its first byte). Tested on vim-7.3.75
> from gentoo repos and vim-7.3.107 (revision 26fb122355d4).
7 is correct, it's the column of the last character operated upon.
Thus it's wrong for "0g@$". Probably missing adjustment for moving the
mark to the first byte of the character.
--
hundred-and-one symptoms of being an internet addict:
136. You decide to stay in a low-paying job teaching just for the
free Internet access.
/// Bram Moolenaar -- [email protected] -- 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