From: Eli Zaretskii Date: Fri, 18 Feb 2011 15:11:10 +0000 (+0200) Subject: xdisp.c (display_line): Fix the change made for bug#7939. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~818 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=42af913dd467c574bb5ccb8825aab5881d9221e7;p=emacs.git xdisp.c (display_line): Fix the change made for bug#7939. --- diff --git a/src/ChangeLog b/src/ChangeLog index 767cf386ee8..72a9287513d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-02-18 Eli Zaretskii + * xdisp.c (display_line): Fix the change made for bug#7939. + * terminal.c (create_terminal): Use default-keyboard-coding-system and default-terminal-coding-system to initialize coding systems of the new terminal. (Bug#7840) diff --git a/src/xdisp.c b/src/xdisp.c index 37fd9e4aaab..e144237d34e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -17294,7 +17294,7 @@ display_line (struct it *it) if the first glyph is partially visible or if we hit a line end. */ if (it->current_x < it->first_visible_x) { - SET_TEXT_POS (this_line_min_pos, ZV + 1, ZV_BYTE + 1); + this_line_min_pos = row->start.pos; move_it_in_display_line_to (it, ZV, it->first_visible_x, MOVE_TO_POS | MOVE_TO_X); /* Record the smallest positions seen while we moved over