Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
93730342
Commit
93730342
authored
Dec 02, 2008
by
Chong Yidong
Browse files
(make_lispy_position): Only use PT if the selected window is current.
parent
651df7d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/keyboard.c
src/keyboard.c
+2
-1
No files found.
src/keyboard.c
View file @
93730342
...
...
@@ -5304,7 +5304,8 @@ make_lispy_position (f, x, y, time)
&object, &dx, &dy, &width, &height);
if (STRINGP (string))
string_info = Fcons (string, make_number (charpos));
if (w == XWINDOW (selected_window))
if (w == XWINDOW (selected_window)
&& current_buffer == XBUFFER (w->buffer))
textpos = PT;
else
textpos = XMARKER (w->pointm)->charpos;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment