Fix bug #9149 with mouse highlight of empty lines.
authorEli Zaretskii <eliz@gnu.org>
Fri, 22 Jul 2011 17:42:43 +0000 (20:42 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 22 Jul 2011 17:42:43 +0000 (20:42 +0300)
 src/xdisp.c (rows_from_pos_range): Don't ignore glyphs whose object
 is an integer, which is important for empty lines.

src/ChangeLog
src/xdisp.c

index 65cd07d..0b06e5b 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-22  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (rows_from_pos_range): Don't ignore glyphs whose object
+       is an integer, which is important for empty lines.  (Bug#9149)
+
 2011-07-22  Chong Yidong  <cyd@stupidchicken.com>
 
        * frame.c (Fmodify_frame_parameters): In tty case, update the
index 72a246c..905a7ec 100644 (file)
@@ -25029,7 +25029,7 @@ rows_from_pos_range (struct window *w,
 
          while (g < e)
            {
-             if (BUFFERP (g->object)
+             if ((BUFFERP (g->object) || INTEGERP (g->object))
                  && start_charpos <= g->charpos && g->charpos < end_charpos)
                *start = row;
              g++;
@@ -25079,7 +25079,7 @@ rows_from_pos_range (struct window *w,
 
          while (g < e)
            {
-             if (BUFFERP (g->object)
+             if ((BUFFERP (g->object) || INTEGERP (g->object))
                  && start_charpos <= g->charpos && g->charpos < end_charpos)
                break;
              g++;