diff options
| author | Chong Yidong | 2009-06-07 21:37:10 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-06-07 21:37:10 +0000 |
| commit | 6756cd1d7cef185befd4b6565d45fbb6a088207c (patch) | |
| tree | 4ed7ad51e651019a74ef4ab0e1199df719c5fc72 | |
| parent | 62e8099cd382e50cd83c20cf56cadd17bc536ede (diff) | |
| download | emacs-6756cd1d7cef185befd4b6565d45fbb6a088207c.tar.gz emacs-6756cd1d7cef185befd4b6565d45fbb6a088207c.zip | |
* xdisp.c (move_it_in_display_line_to): On text-only terminals,
account for the overflowing of newlines into the last glyph on the
display line (Bug#3482).
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xdisp.c | 12 |
2 files changed, 16 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fe60195e5e7..57f4af904c5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-06-07 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * xdisp.c (move_it_in_display_line_to): On text-only terminals, | ||
| 4 | account for the overflowing of newlines into the last glyph on the | ||
| 5 | display line (Bug#3482). | ||
| 6 | |||
| 1 | 2009-06-05 David Reitter <david.reitter@gmail.com> | 7 | 2009-06-05 David Reitter <david.reitter@gmail.com> |
| 2 | 8 | ||
| 3 | * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p, | 9 | * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p, |
diff --git a/src/xdisp.c b/src/xdisp.c index 125e05f0086..01b16dba539 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -6918,7 +6918,14 @@ move_it_in_display_line_to (struct it *it, | |||
| 6918 | 6918 | ||
| 6919 | set_iterator_to_next (it, 1); | 6919 | set_iterator_to_next (it, 1); |
| 6920 | #ifdef HAVE_WINDOW_SYSTEM | 6920 | #ifdef HAVE_WINDOW_SYSTEM |
| 6921 | if (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) | 6921 | /* One graphical terminals, newlines may |
| 6922 | "overflow" into the fringe if | ||
| 6923 | overflow-newline-into-fringe is non-nil. | ||
| 6924 | On text-only terminals, newlines may | ||
| 6925 | overflow into the last glyph on the | ||
| 6926 | display line.*/ | ||
| 6927 | if (!FRAME_WINDOW_P (it->f) | ||
| 6928 | || IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) | ||
| 6922 | { | 6929 | { |
| 6923 | if (!get_next_display_element (it)) | 6930 | if (!get_next_display_element (it)) |
| 6924 | { | 6931 | { |
| @@ -7015,7 +7022,8 @@ move_it_in_display_line_to (struct it *it, | |||
| 7015 | && it->current_x >= it->last_visible_x) | 7022 | && it->current_x >= it->last_visible_x) |
| 7016 | { | 7023 | { |
| 7017 | #ifdef HAVE_WINDOW_SYSTEM | 7024 | #ifdef HAVE_WINDOW_SYSTEM |
| 7018 | if (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) | 7025 | if (!FRAME_WINDOW_P (it->f) |
| 7026 | || IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) | ||
| 7019 | { | 7027 | { |
| 7020 | if (!get_next_display_element (it) | 7028 | if (!get_next_display_element (it) |
| 7021 | || BUFFER_POS_REACHED_P ()) | 7029 | || BUFFER_POS_REACHED_P ()) |