emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r109069: Fix bs-show when the right f


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109069: Fix bs-show when the right fringe is off.
Date: Fri, 13 Jul 2012 13:11:37 +0300
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109069
fixes bug: http://debbugs.gnu.org/11832
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Fri 2012-07-13 13:11:37 +0300
message:
  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)
modified:
  src/ChangeLog
  src/xdisp.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-07-13 03:50:58 +0000
+++ b/src/ChangeLog     2012-07-13 10:11:37 +0000
@@ -1,3 +1,9 @@
+2012-07-13  Eli Zaretskii  <address@hidden>
+
+       * 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  <address@hidden>
 
        * xdisp.c (produce_special_glyphs): Now static.

=== modified file 'src/xdisp.c'
--- a/src/xdisp.c       2012-07-13 03:50:58 +0000
+++ b/src/xdisp.c       2012-07-13 10:11:37 +0000
@@ -8381,10 +8381,15 @@
                          /* 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 @@
          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;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]