1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 19:31:02 -08:00

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)
This commit is contained in:
Eli Zaretskii 2012-07-13 13:11:37 +03:00
parent b68b33375c
commit ea814a5df4
2 changed files with 15 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2012-07-13 Eli Zaretskii <eliz@gnu.org>
* 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)
2012-07-13 Paul Eggert <eggert@cs.ucla.edu>
* xdisp.c (produce_special_glyphs): Now static.

View file

@ -8381,10 +8381,15 @@ move_it_in_display_line_to (struct it *it,
/* On graphical terminals, newlines may
"overflow" into the fringe if
overflow-newline-into-fringe is non-nil.
On text terminals, newlines may overflow
into the last glyph on the display
line.*/
On text terminals, and on graphical
terminals with no right margin, newlines
may overflow into the last glyph on the
display line.*/
if (!FRAME_WINDOW_P (it->f)
|| ((it->bidi_p
&& it->bidi_it.paragraph_dir == R2L)
? WINDOW_LEFT_FRINGE_WIDTH (it->w)
: WINDOW_RIGHT_FRINGE_WIDTH (it->w)) == 0
|| IT_OVERFLOW_NEWLINE_INTO_FRINGE (it))
{
if (!get_next_display_element (it))
@ -8518,7 +8523,7 @@ move_it_in_display_line_to (struct it *it,
if (!FRAME_WINDOW_P (it->f)
|| ((it->bidi_p && it->bidi_it.paragraph_dir == R2L)
? WINDOW_LEFT_FRINGE_WIDTH (it->w)
: WINDOW_RIGHT_FRINGE_WIDTH (it->w))
: WINDOW_RIGHT_FRINGE_WIDTH (it->w)) == 0
|| IT_OVERFLOW_NEWLINE_INTO_FRINGE (it))
{
int at_eob_p = 0;