diff src/xdisp.c @ 24711:365644d49998

(try_window_id): Fix computation of tab_offset when backing up over a character that is splitted across lines.
author Andreas Schwab <schwab@suse.de>
date Mon, 10 May 1999 12:53:07 +0000
parents ba5632c9721a
children de2065294ca3
line wrap: on
line diff
--- a/src/xdisp.c	Mon May 10 12:49:39 1999 +0000
+++ b/src/xdisp.c	Mon May 10 12:53:07 1999 +0000
@@ -2708,7 +2708,7 @@
   if (bp.contin && bp.hpos != lmargin)
     {
       val.hpos = bp.prevhpos - width + lmargin;
-      val.tab_offset = bp.tab_offset + bp.prevhpos - width;
+      val.tab_offset = bp.tab_offset + width - bp.prevhpos;
       did_motion = 1;
       DEC_BOTH (pos, pos_byte);
     }