68335Re: [patch] [test] test if :mksession saves cursor columns correctly in presence of tab and multibyte characters
- Feb 17, 2013Hi 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:
call setpos('.', ....)
Since getpos() or winsaveview uses the byte-value of w_cursor.col this
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 vim_dev+unsubscribe@....
For more options, visit https://groups.google.com/groups/opt_out.
- << Previous post in topic Next post in topic >>