Vim (in a terminal) is drawing the cursor over the wrong character after I
walk over some crazy high Unicode characters. Here's a screenshot:

https://imgur.com/VjrddEK

Notice how the broken heart is highlighted, but the text on the bottom
terminal line shows the result of me typing ga in normal mode: the cursor
under the character *should* be ASCII 32 - a space. Please ignore my
airline on the previous line.

I tried with zero config like so:

  vim -u /dev/null -U /dev/null

...still repros.

The file has UNIX (LF) line endings.

The first line contains a skill and crossbones, a space, and a radioactive
sign. This line works as I'd expect, and Vim properly draws the cursor on
the space between the two. These codepoints are U+2620 and U+2622.

The second line contains three perhaps more exotic characters with an ASCII
32 space between each. The first is "U+1F44D THUMBS UP SIGN".

I'm using gnome-terminal, but it also repros in xterm and uxterm. I don't
have any other terminals installed.

Does not repro in gvim nor gedit. Does not repro in nano nor pico.

I'm using 64-bit Ubuntu 16.04 desktop.

I'm using the distro-provided Vim packages. Here's what I've got installed:

ii  vim-common     2:7.4.1689-3ubuntu1.2 amd64        Vi IMproved - Common
files
ii  vim-gnome      2:7.4.1689-3ubuntu1.2 amd64        Vi IMproved -
enhanced vi editor - with GNOME2 GUI
ii  vim-gui-common 2:7.4.1689-3ubuntu1.2 all          Vi IMproved - Common
GUI files
ii  vim-runtime    2:7.4.1689-3ubuntu1.2 all          Vi IMproved - Runtime
files
ii  vim-tiny       2:7.4.1689-3ubuntu1.2 amd64        Vi IMproved -
enhanced vi editor - compact version

Here's the file I'm testing with: http://adammonsen.com/tmp/unicode-test.txt
(SHA-256 checksum is 5bc884fe08b7bba58ae91f6a9eabcf
40642a03580a59092c8a9fc270883390d4 ). I don't have a fancy webserver so you
may have to force encoding to UTF-8 if you want that to look reasonable in
your browser. The file doesn't have a BOM.

I read through http://vimdoc.sourceforge.net/cgi-bin/vimfaq2html3.pl and I
searched around a bit but couldn't figure this one out. Any ideas? Anyone
else able to repro?

-Adam

My vim --version:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)
Included patches: 1-1689
Extra patches: 8.0.0056
Modified by pkg-vim-maintain...@lists.alioth.debian.org
Compiled by pkg-vim-maintain...@lists.alioth.debian.org
Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +tag_binary
+arabic          +file_in_path    +mouse_sgr       +tag_old_static
+autocmd         +find_in_path    -mouse_sysmouse  -tag_any_white
+balloon_eval    +float           +mouse_urxvt     +tcl
+browse          +folding         +mouse_xterm     +terminfo
++builtin_terms  -footer          +multi_byte      +termresponse
+byte_offset     +fork()          +multi_lang      +textobjects
+channel         +gettext         -mzscheme        +timers
+cindent         -hangul_input    +netbeans_intg   +title
+clientserver    +iconv           +packages        +toolbar
+clipboard       +insert_expand   +path_extra      +user_commands
+cmdline_compl   +job             +perl            +vertsplit
+cmdline_hist    +jumplist        +persistent_undo +virtualedit
+cmdline_info    +keymap          +postscript      +visual
+comments        +langmap         +printer         +visualextra
+conceal         +libcall         +profile         +viminfo
+cryptv          +linebreak       -python          +vreplace
+cscope          +lispindent      +python3         +wildignore
+cursorbind      +listcmds        +quickfix        +wildmenu
+cursorshape     +localmap        +reltime         +windows
+dialog_con_gui  +lua             +rightleft       +writebackup
+diff            +menu            +ruby            +X11
+digraphs        +mksession       +scrollbind      -xfontset
+dnd             +modify_fname    +signs           +xim
-ebcdic          +mouse           +smartindent     +xsmp_interact
+emacs_tags      +mouseshape      +startuptime     +xterm_clipboard
+eval            +mouse_dec       +statusline      -xterm_save
+ex_extra        +mouse_gpm       -sun_workshop    +xpm
+extra_search    -mouse_jsbterm   +syntax
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread
-I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include
-I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1
-I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2
-D_REENTRANT -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0
-I/usr/include/gnome-keyring-1 -I/usr/include/libbonoboui-2.0
-I/usr/include/libxml2 -I/usr/include/libgnome-2.0
-I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0
-I/usr/include/orbit-2.0 -I/usr/include/libgnomecanvas-2.0
-I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -I/usr/include/gtk-2.0
-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12
-I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/libpng12 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/x86_64-linux-gnu/gnome-vfs-2.0/include -I/usr/include/gconf/2
-I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-Wdate-time  -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format

-- 
-- 
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to