# HG changeset patch # User Andreas Schwab # Date 926340787 0 # Node ID 365644d49998a5761386104c62a0635a1e6dff4a # Parent bcb0ee72502cf8d5372393421d120e4138816887 (try_window_id): Fix computation of tab_offset when backing up over a character that is splitted across lines. diff -r bcb0ee72502c -r 365644d49998 src/xdisp.c --- 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); }