comparison src/xdisp.c @ 23784:b09b3351386f

(display_text_line): When handling HPOS < 0 after loop, if compute_motion fails to advance at all, don't back it up.
author Richard M. Stallman <rms@gnu.org>
date Mon, 30 Nov 1998 06:35:33 +0000
parents d87960db41e9
children d178122d6122
comparison
equal deleted inserted replaced
23783:d015bfcaaead 23784:b09b3351386f
3369 the left margin. 3369 the left margin.
3370 3370
3371 compute_motion may have moved us past the screen position we 3371 compute_motion may have moved us past the screen position we
3372 requested, if we hit a multi-column character, or the end of 3372 requested, if we hit a multi-column character, or the end of
3373 the line. If so, back up. */ 3373 the line. If so, back up. */
3374 if (left_edge->vpos > vpos 3374 if ((left_edge->vpos > vpos
3375 || left_edge->hpos > 0) 3375 || left_edge->hpos > 0)
3376 && left_edge->bufpos > pos)
3376 { 3377 {
3377 pos = left_edge->bufpos; 3378 pos = left_edge->bufpos;
3378 pos_byte = left_edge->bytepos; 3379 pos_byte = left_edge->bytepos;
3379 DEC_BOTH (pos, pos_byte); 3380 DEC_BOTH (pos, pos_byte);
3380 hpos = left_edge->prevhpos; 3381 hpos = left_edge->prevhpos;