]> git.eshelyaron.com Git - emacs.git/commitdiff
(notice_overwritten_cursor): Take care of end < 0 case.
authorJason Rumney <jasonr@gnu.org>
Sat, 17 Nov 2001 17:36:51 +0000 (17:36 +0000)
committerJason Rumney <jasonr@gnu.org>
Sat, 17 Nov 2001 17:36:51 +0000 (17:36 +0000)
src/xterm.c

index 57c1bcc2d6809fbf2859321c5dc1a678d4ac5afa..5c11906863a138b7f49d298251ae6f7ad0111c85 100644 (file)
@@ -11094,7 +11094,7 @@ notice_overwritten_cursor (w, start_x, end_x)
       && w->phys_cursor_on_p
       && output_cursor.vpos == w->phys_cursor.vpos
       && start_x <= w->phys_cursor.x
-      && end_x > w->phys_cursor.x)
+      && (end_x < 0 || end_x > w->phys_cursor.x))
     w->phys_cursor_on_p = 0;
 }