Tony wrote:
> When typing ":marks" in a file with long lines, I notice that the text
> of the marked lines is truncated after a number of _bytes_ (including
> line number etc.) equal to the 'columns' setting; in partly non-ASCII
> text (and for example in my Russian dictionary mixing Russian
> (Cyrillic) and French (Latin) text with occasionally UTF-8 punctuation
> marks like em-dash or horizontal ellipsis) this gives marked text of
> apparently fluctuating width, because the "column" (i.e. byte number)
> differs from the "virtual column" (i.e. screen cell number) in
> function of the number of non-ASCII characters (each "trailer byte"
> 0x80..0xBF in their UTF-8 representation shortens by one column the
> length of the displayed text). I didn't check what happens if the
> concerned text includes hard tabs, which may _increase_ the screen
> cell number by respect to the byte number.
>
> Seen in Big gvim 8.1.164 with GTK2 GUI, not tested in other builds.
>
> Bug or feature?
I cannot reproduc it. If I add multi-byte character in a line and type
":marks", the mark for that line spans almost to the rightmost column.
It appears to be counting screen cells, not bytes.
It could be related to ambiguous width perhaps? Try changing the
'ambiwidth' option.
--
panic("Foooooooood fight!");
-- In the kernel source aha1542.c, after detecting a bad segment list
/// 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/d/optout.