diff options
| author | Gerd Moellmann | 2001-10-01 10:52:55 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-10-01 10:52:55 +0000 |
| commit | e74fb0f735d41ec3f5ad8f51898a5eafbaf09ef2 (patch) | |
| tree | 5708c9140357694c779c0210e4ee08fb3ca0e8f6 /src | |
| parent | 62bfa68216e11bd049cb85b50cd6b2cfc16477f5 (diff) | |
| download | emacs-e74fb0f735d41ec3f5ad8f51898a5eafbaf09ef2.tar.gz emacs-e74fb0f735d41ec3f5ad8f51898a5eafbaf09ef2.zip | |
(display_line): Set row's ends_in_newline_from_string_p.
(try_window_id): Skip back over lines ending in a newline from a
string.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 5 |
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); |