]> granicus.if.org Git - vim/commitdiff
Fix: An unprintable multi-byte character at the start of the screen line
authorBram Moolenaar <Bram@vim.org>
Sat, 7 Aug 2010 14:38:13 +0000 (16:38 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 7 Aug 2010 14:38:13 +0000 (16:38 +0200)
caused the following text to be drawn at the wrong position.

runtime/doc/todo.txt
src/screen.c

index 9c00439451bcb5926127b161a19e9e6fe386069f..98ca232c2c78edbaf5c785fb88bdb5d4e0d60de9 100644 (file)
@@ -33,9 +33,6 @@ be worked on, but only if you sponsor Vim development.  See |sponsor|.
 Before release 7.3:
 - Rename vim73 branch to default (hints: Xavier de Gaye, 2010 May 23)
 
-Better Czech keymap. (Stepnem, 2010 May 4)  Use if no response from Jiri
-Tobisek.
-
 :!cmd completion doesn't work on Windows. (Yue Wu).
 Problem with space in path?
 
index a53a9419ffe636c320c1c650dec57f2b0dbef156..7b8a757ff8f687689ae79f77edfc869bf080a5dd 100644 (file)
@@ -4005,8 +4005,9 @@ win_line(wp, lnum, startrow, endrow, nochange)
                    ptr += mb_l - 1;
 
                /* If a double-width char doesn't fit at the left side display
-                * a '<' in the first column. */
-               if (n_skip > 0 && mb_l > 1)
+                * a '<' in the first column.  Don't do this for unprintable
+                * charactes. */
+               if (n_skip > 0 && mb_l > 1 && n_extra == 0)
                {
                    n_extra = 1;
                    c_extra = '<';