diff options
| author | Eli Zaretskii | 2012-07-13 13:11:37 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-07-13 13:11:37 +0300 |
| commit | ea814a5df444267f60807a3d2b064eac55bc2f48 (patch) | |
| tree | 17e655d1d15a8afcf940d55cb94931d388db3d05 /src | |
| parent | b68b33375caeb82a4b3418d43c75bc8ccd43633a (diff) | |
| download | emacs-ea814a5df444267f60807a3d2b064eac55bc2f48.tar.gz emacs-ea814a5df444267f60807a3d2b064eac55bc2f48.zip | |
Fix bs-show when the right fringe is off.
src/xdisp.c (move_it_in_display_line_to): On GUI terminals, allow
cursor overflow into the last glyph on display line when the right
fringe is off. (Bug#11832)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xdisp.c | 13 |
2 files changed, 15 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0ce8839c405..3c74343a708 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-07-13 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (move_it_in_display_line_to): On GUI terminals, allow | ||
| 4 | cursor overflow into the last glyph on display line when the right | ||
| 5 | fringe is off. (Bug#11832) | ||
| 6 | |||
| 1 | 2012-07-13 Paul Eggert <eggert@cs.ucla.edu> | 7 | 2012-07-13 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 8 | ||
| 3 | * xdisp.c (produce_special_glyphs): Now static. | 9 | * xdisp.c (produce_special_glyphs): Now static. |
diff --git a/src/xdisp.c b/src/xdisp.c index 4fa3c375ea7..4d77b56ad55 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -8381,10 +8381,15 @@ move_it_in_display_line_to (struct it *it, | |||
| 8381 | /* On graphical terminals, newlines may | 8381 | /* On graphical terminals, newlines may |
| 8382 | "overflow" into the fringe if | 8382 | "overflow" into the fringe if |
| 8383 | overflow-newline-into-fringe is non-nil. | 8383 | overflow-newline-into-fringe is non-nil. |
| 8384 | On text terminals, newlines may overflow | 8384 | On text terminals, and on graphical |
| 8385 | into the last glyph on the display | 8385 | terminals with no right margin, newlines |
| 8386 | line.*/ | 8386 | may overflow into the last glyph on the |
| 8387 | display line.*/ | ||
| 8387 | if (!FRAME_WINDOW_P (it->f) | 8388 | if (!FRAME_WINDOW_P (it->f) |
| 8389 | || ((it->bidi_p | ||
| 8390 | && it->bidi_it.paragraph_dir == R2L) | ||
| 8391 | ? WINDOW_LEFT_FRINGE_WIDTH (it->w) | ||
| 8392 | : WINDOW_RIGHT_FRINGE_WIDTH (it->w)) == 0 | ||
| 8388 | || IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) | 8393 | || IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) |
| 8389 | { | 8394 | { |
| 8390 | if (!get_next_display_element (it)) | 8395 | if (!get_next_display_element (it)) |
| @@ -8518,7 +8523,7 @@ move_it_in_display_line_to (struct it *it, | |||
| 8518 | if (!FRAME_WINDOW_P (it->f) | 8523 | if (!FRAME_WINDOW_P (it->f) |
| 8519 | || ((it->bidi_p && it->bidi_it.paragraph_dir == R2L) | 8524 | || ((it->bidi_p && it->bidi_it.paragraph_dir == R2L) |
| 8520 | ? WINDOW_LEFT_FRINGE_WIDTH (it->w) | 8525 | ? WINDOW_LEFT_FRINGE_WIDTH (it->w) |
| 8521 | : WINDOW_RIGHT_FRINGE_WIDTH (it->w)) | 8526 | : WINDOW_RIGHT_FRINGE_WIDTH (it->w)) == 0 |
| 8522 | || IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) | 8527 | || IT_OVERFLOW_NEWLINE_INTO_FRINGE (it)) |
| 8523 | { | 8528 | { |
| 8524 | int at_eob_p = 0; | 8529 | int at_eob_p = 0; |