diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index a5a86071f1a..977944e5918 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -3371,8 +3371,9 @@ display_text_line (w, start, start_byte, vpos, hpos, taboffset, ovstr_done) | |||
| 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; |