repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 641409a0b2abb5ba5358770d01619b219e18e467:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 641409a0b2abb5ba5358770d01619b219e18e467
Author: Marc Lehmann 
Date:   Fri Oct 15 21:13:44 2010 +0000

    *** empty log message ***

diff --git a/src/screen.C b/src/screen.C
index f1f26adfd990880753ba6f909320807499ca306b..
index ..0d2ce1b77660187938ee590a22891d13236d732f 100644
--- a/src/screen.C
+++ b/src/screen.C
@@ -919,11 +919,10 @@ rxvt_term::scr_add_lines (const wchar_t *str, int len, int minlines) NOTHROW
             }

           // nuke the character at this position, if required
-          if (expect_false (
-                line->t[screen.cur.col] == NOCHAR
-                || (screen.cur.col < ncol - 1
-                    && line->t[screen.cur.col + 1] == NOCHAR)
-             ))
+          // due to wonderful coincidents everywehere else in this loop
+          // we never have to check for overwriting a wide char itself,
+          // only it's tail.
+          if (expect_false (line->t[screen.cur.col] == NOCHAR))
             scr_kill_char (*line, screen.cur.col);

           line->touch ();

-----END OF PAGE-----