From: Andreas Schwab Date: Mon, 10 May 1999 12:53:07 +0000 (+0000) Subject: (try_window_id): Fix computation of tab_offset when X-Git-Tag: emacs-20.4~238 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=daa3df262c9aa0c4e2601183f441479df418269b;p=emacs.git (try_window_id): Fix computation of tab_offset when backing up over a character that is splitted across lines. --- diff --git a/src/xdisp.c b/src/xdisp.c index 57feb78a1bf..b401f59de27 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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); }