Commit b2d0c91a authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Fix bug #9149 with mouse highlight of empty lines.

 src/xdisp.c (rows_from_pos_range): Don't ignore glyphs whose object
 is an integer, which is important for empty lines.
parent a9901f61
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
......
......@@ -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++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment