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

Add a couple bug fixes to SublimeBlockCursor.py. #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexleach
Copy link

Fixed a NameError, as view_is_widget was defined as a method, but used like a function. So, moved it out of the class, although a smaller fix would have been to just add self. to the view_is_widget call, in on_selection_modified().

Also, added a None type check, to suppress some errors I saw in the console. The latter fix is slightly different to, but addresses the same issue reported in PR #13. Only just seen that PR, but I applied the patch a while ago, so I'm not exactly sure under what circumstances that error message is produced...

…ew_is_widget was defined as a method, but used like a function. So, moved it out of the class and added a None type check, to suppress some errors I saw in the console
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.

1 participant