aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 00447cdb48d..09bc0f8185a 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -11495,7 +11495,8 @@ try_window_id (w)
11495 for instance. This is easier than to set up the iterator 11495 for instance. This is easier than to set up the iterator
11496 exactly, and it's not a frequent case, so the additional 11496 exactly, and it's not a frequent case, so the additional
11497 effort wouldn't really pay off. */ 11497 effort wouldn't really pay off. */
11498 while (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P (last_unchanged_at_beg_row) 11498 while ((MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P (last_unchanged_at_beg_row)
11499 || last_unchanged_at_beg_row->ends_in_newline_from_string_p)
11499 && last_unchanged_at_beg_row > w->current_matrix->rows) 11500 && last_unchanged_at_beg_row > w->current_matrix->rows)
11500 --last_unchanged_at_beg_row; 11501 --last_unchanged_at_beg_row;
11501 11502
@@ -13004,6 +13005,8 @@ display_line (it)
13004 { 13005 {
13005 int used_before = row->used[TEXT_AREA]; 13006 int used_before = row->used[TEXT_AREA];
13006 13007
13008 row->ends_in_newline_from_string_p = STRINGP (it->object);
13009
13007 /* Add a space at the end of the line that is used to 13010 /* Add a space at the end of the line that is used to
13008 display the cursor there. */ 13011 display the cursor there. */
13009 append_space (it, 0); 13012 append_space (it, 0);