summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>1999-05-10 12:53:07 +0000
committerAndreas Schwab <schwab@suse.de>1999-05-10 12:53:07 +0000
commitdaa3df262c9aa0c4e2601183f441479df418269b (patch)
treeb75a28ffa256d60d477354a29332e73c2bd5a567
parent657cca97bef9100cef54e04ef6feec46ade2fcfd (diff)
downloademacs-daa3df262c9aa0c4e2601183f441479df418269b.tar.gz
(try_window_id): Fix computation of tab_offset when
backing up over a character that is splitted across lines.
-rw-r--r--src/xdisp.c2
1 files changed, 1 insertions, 1 deletions
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);
}