comparison src/xdisp.c @ 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 ba5632c9721a
children de2065294ca3
comparison
equal deleted inserted replaced
24710:bcb0ee72502c 24711:365644d49998
2706 val.tab_offset = bp.tab_offset; /* Update tab offset. */ 2706 val.tab_offset = bp.tab_offset; /* Update tab offset. */
2707 2707
2708 if (bp.contin && bp.hpos != lmargin) 2708 if (bp.contin && bp.hpos != lmargin)
2709 { 2709 {
2710 val.hpos = bp.prevhpos - width + lmargin; 2710 val.hpos = bp.prevhpos - width + lmargin;
2711 val.tab_offset = bp.tab_offset + bp.prevhpos - width; 2711 val.tab_offset = bp.tab_offset + width - bp.prevhpos;
2712 did_motion = 1; 2712 did_motion = 1;
2713 DEC_BOTH (pos, pos_byte); 2713 DEC_BOTH (pos, pos_byte);
2714 } 2714 }
2715 2715
2716 bp.vpos = vpos; 2716 bp.vpos = vpos;