Hi Bram!
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.
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.
regards,
Christian
--
--
--
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.