Christian Brabandt wrote:
> On So, 17 Feb 2013, Bram Moolenaar wrote:
>
> > I think using mb_string2cells() is wrong, because it counts double-wide
> > characters as two, while "l" counts them as one.
>
> Oh, I didn't know that.
>
> > How about using w_cursor.vcol but move with "|" instead of "l"?
>
> You mean w_cursor.col and using '|' instead of 'l'. That won't help
> here, I am afraid.
No, that doesn't work. I meant w_virtcol. It has to be validated
before using it. Might be tricky in other windows than the current
window.
> If we have a multi-byte built, we also have eval feature, right?
> So can't we use something like this:
>
> norm! 06l
> if 1
> call setpos('.', ....)
> endif
>
> Since getpos() or winsaveview uses the byte-value of w_cursor.col this
> should work.
It is possible to have multi-byte without eval.
--
"Lisp has all the visual appeal of oatmeal with nail clippings thrown in."
-- Larry Wall
/// 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
---
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.