Consider the following script:

    echo strwidth(nr2char(0x1F48E))

. It should display “2” because 0x1F48E is a fullwidth ruby symbol. But Vim 
actually displays “1”. This causes rendering bugs at least in terminal because 
unlike Vim terminal (Konsole) knows that ruby symbol occupies two display 
cells. Problem can be observed with the following script:

    vim -u NONE -i NONE -N --cmd 'set encoding=utf-8' -c 'call setline(".", 
["(" . nr2char(0xFF21) . ")", "(" . nr2char(0x1F48E) . ")"])' -c 'normal! G$'

. Display bug: 
http://img-fotki.yandex.ru/get/15583/9151298.5/0_af494_e6a1fc7e_orig.png:

    (A)
    (█☐)

(where third character on second line character is the inversed version of the 
first one: black box with white frame) with cursor on the third character on 
the second line in place of

    (A)
    (💎)

with cursor on the last parenthesis. Vim version is 7.4.540 (from 
https://bitbucket.org/ZyX_I/vim/changeset/b96a442ce32c1747da2b07ca3410217ba2f38d8d).

-- 
-- 
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.

Raspunde prin e-mail lui