changeset 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 bcb0ee72502c
children 31a648f12180
files src/xdisp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);
     }