Commit 93730342 authored by Chong Yidong's avatar Chong Yidong
Browse files

(make_lispy_position): Only use PT if the selected window is current.

parent 651df7d9
...@@ -5304,7 +5304,8 @@ make_lispy_position (f, x, y, time) ...@@ -5304,7 +5304,8 @@ make_lispy_position (f, x, y, time)
&object, &dx, &dy, &width, &height); &object, &dx, &dy, &width, &height);
if (STRINGP (string)) if (STRINGP (string))
string_info = Fcons (string, make_number (charpos)); string_info = Fcons (string, make_number (charpos));
if (w == XWINDOW (selected_window)) if (w == XWINDOW (selected_window)
&& current_buffer == XBUFFER (w->buffer))
textpos = PT; textpos = PT;
else else
textpos = XMARKER (w->pointm)->charpos; textpos = XMARKER (w->pointm)->charpos;
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