Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #5 "Prevents text selection in console" on version >= 4149, since… #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mouse_event_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ def run_(self, edit, args):
#This is the "real" drag_select that alters the selection for real.
self.view.run_command("drag_select", args)

#Expose click-event-arguments to on_post_mouse_down
for c in sublime_plugin.all_callbacks.setdefault('on_post_mouse_down',[]):
c.on_post_mouse_down(click_point)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking API change that I cannot merge without a path for migration. However, considering my previous message of phasing out this package, we won't need one.

c.on_post_mouse_down(args, click_point)

class MouseEventListener(sublime_plugin.EventListener):
#If we add the callback names to the list of all callbacks, Sublime
Expand Down