summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-08-07 16:38:13 +0200
committerBram Moolenaar <Bram@vim.org>2010-08-07 16:38:13 +0200
commit7ba6ed34fe4b63671cb1595fa8c8eab3b0c45b69 (patch)
treed86212e48066ca95e77850e987cbd7da80cf624f
parentbebca9daa4118737fc74590af6b04e4b23ae2c4d (diff)
Fix: An unprintable multi-byte character at the start of the screen line
caused the following text to be drawn at the wrong position.
-rw-r--r--runtime/doc/todo.txt3
-rw-r--r--src/screen.c5
2 files changed, 3 insertions, 5 deletions
diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt
index 9c00439451..98ca232c2c 100644
--- a/runtime/doc/todo.txt
+++ b/runtime/doc/todo.txt
@@ -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?
diff --git a/src/screen.c b/src/screen.c
index a53a9419ff..7b8a757ff8 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -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 = '<';