changeset 2509:6d6378ba18cb vim73

Fix: An unprintable multi-byte character at the start of the screen line caused the following text to be drawn at the wrong position.
author Bram Moolenaar <bram@vim.org>
date Sat, 07 Aug 2010 16:38:13 +0200
parents 7e008c174cc3
children d1431cbd138b
files runtime/doc/todo.txt src/screen.c
diffstat 2 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/doc/todo.txt
+++ b/runtime/doc/todo.txt
@@ -33,9 +33,6 @@ be worked on, but only if you sponsor Vi
 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?
 
--- a/src/screen.c
+++ b/src/screen.c
@@ -4005,8 +4005,9 @@ win_line(wp, lnum, startrow, endrow, noc
 		    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 = '<';