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

Handle no selection consistently #1646

Merged
merged 12 commits into from
Apr 23, 2021
Merged

Handle no selection consistently #1646

merged 12 commits into from
Apr 23, 2021

Conversation

rchl
Copy link
Member

@rchl rchl commented Apr 21, 2021

Fixes a crash that could happen in certain scenarios and also an issue
with showing the hover popup with hovering a 0 offset in the view.

Fixes #1645

Fixes a crash that could happen in certain scenarios and also an issue
with showing the hover popup with hovering 0 offset in the view.

Fixes #1645
plugin/core/registry.py Outdated Show resolved Hide resolved
plugin/hover.py Outdated Show resolved Hide resolved
Comment on lines +40 to +43
tmp_pos = get_position(self.view, event, point)
if tmp_pos is None:
return
pos = tmp_pos
Copy link
Member Author

Choose a reason for hiding this comment

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

Had to do this "tmp" stuff because python is weird. Or lambdas rather since they don't bind the variables so the type will revert to possibly being None

plugin/core/views.py Outdated Show resolved Hide resolved
plugin/formatting.py Outdated Show resolved Hide resolved
@rwols rwols merged commit f1595d7 into st4000-exploration Apr 23, 2021
@rwols rwols deleted the fix/empty-sel branch April 23, 2021 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unrelated TextCommand breaks LSP
3 participants