]> git.eshelyaron.com Git - emacs.git/commitdiff
* xdisp.c (move_it_in_display_line_to): On text-only terminals,
authorChong Yidong <cyd@stupidchicken.com>
Sun, 7 Jun 2009 21:37:10 +0000 (21:37 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 7 Jun 2009 21:37:10 +0000 (21:37 +0000)
account for the overflowing of newlines into the last glyph on the
display line (Bug#3482).

src/ChangeLog
src/xdisp.c

index fe60195e5e70a693ab559ef07bd60ba96fb8f9d0..57f4af904c518a49d3c45b81c42f0c9798c598d8 100644 (file)
@@ -1,3 +1,9 @@
+2009-06-07  Chong Yidong  <cyd@stupidchicken.com>
+
+       * 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).
+
 2009-06-05  David Reitter  <david.reitter@gmail.com>
 
        * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p,
index 125e05f0086fb3072414e622303f6794ae158754..01b16dba539720a34b70543704fda3f5eddd90fc 100644 (file)
@@ -6918,7 +6918,14 @@ move_it_in_display_line_to (struct it *it,
 
                          set_iterator_to_next (it, 1);
 #ifdef HAVE_WINDOW_SYSTEM
-                         if (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it))
+                         /* One graphical terminals, newlines may
+                            "overflow" into the fringe if
+                            overflow-newline-into-fringe is non-nil.
+                            On text-only terminals, newlines may
+                            overflow into the last glyph on the
+                            display line.*/
+                         if (!FRAME_WINDOW_P (it->f)
+                             || IT_OVERFLOW_NEWLINE_INTO_FRINGE (it))
                            {
                              if (!get_next_display_element (it))
                                {
@@ -7015,7 +7022,8 @@ move_it_in_display_line_to (struct it *it,
          && it->current_x >= it->last_visible_x)
        {
 #ifdef HAVE_WINDOW_SYSTEM
-         if (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it))
+         if (!FRAME_WINDOW_P (it->f)
+             || IT_OVERFLOW_NEWLINE_INTO_FRINGE (it))
            {
              if (!get_next_display_element (it)
                  || BUFFER_POS_REACHED_P ())