]> code.delx.au - gnu-emacs/commitdiff
(try_window_id): Fix computation of tab_offset when
authorAndreas Schwab <schwab@suse.de>
Mon, 10 May 1999 12:53:07 +0000 (12:53 +0000)
committerAndreas Schwab <schwab@suse.de>
Mon, 10 May 1999 12:53:07 +0000 (12:53 +0000)
backing up over a character that is splitted across lines.

src/xdisp.c

index 57feb78a1bf4516340491f32491848c956dbc363..b401f59de27a63e8e267e30570b77072ff449d3e 100644 (file)
@@ -2708,7 +2708,7 @@ try_window_id (window)
   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);
     }