Re: bug with getpos("'>") with multibyte charactor?
- On 03-Apr-2010 19:04, Tony Mechelynck wrote:
> I don't think that marks can be set halfway a character anyway, evenCorrect. [At least in GVIM,] the cursor turns into a double-width block when on
> with 'virtualedit' nonempty. (Or can they?)
a Kanji character. 'virtualedit' only applies to positioning inside <Tab>
Also be aware that the byte-index returned by getpos() is not related to the
screen width of a character (queried via virtcol()). In UTF-8 encoding, a Kanji
character is stored in 3 byte, but takes two columns of screen space. There can
also be multi-column characters that only take up one byte (<Tab> is the most
prominent one), and multi-byte characters that only take up one column.
-- regards, ingo
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
To unsubscribe, reply using "remove me" as the subject.