68351Re: [patch] [test] test if :mksession saves cursor columns correctly in presence of tab and multibyte characters
- Feb 18, 2013Christian Brabandt wrote:
> On So, 17 Feb 2013, Bram Moolenaar wrote:No, that doesn't work. I meant w_virtcol. It has to be validated
> > 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.
before using it. Might be tricky in other windows than the current
> If we have a multi-byte built, we also have eval feature, right?It is possible to have multi-byte without eval.
> So can't we use something like this:
> norm! 06l
> if 1
> call setpos('.', ....)
> Since getpos() or winsaveview uses the byte-value of w_cursor.col this
> should work.
"Lisp has all the visual appeal of oatmeal with nail clippings thrown in."
-- Larry Wall
/// Bram Moolenaar -- Bram@... -- 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 vim_dev+unsubscribe@....
For more options, visit https://groups.google.com/groups/opt_out.
- << Previous post in topic Next post in topic >>