-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Prevent tooltip from showing when hovering past the end of script line #100913
Conversation
a857763
to
367c157
Compare
I wonder, why would one ever want the existing behaviour enough to warrant it being an optional argument? |
For The reason I added the argument to If wanted, I would not be against not adding this new argument, and instead changing the current behavior of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a node GUI expert, but the code looks good to me, I tested it and it works fine.
367c157
to
2dc69ed
Compare
The behavior of |
I removed the optional argument from Instead, I split the argument in |
2dc69ed
to
5d67679
Compare
5d67679
to
84add50
Compare
84add50
to
ff39add
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally, it works as expected. Code and docs look good to me.
Prevent tooltip from showing when hovering past the end of script line
Thanks! |
Fixes #100767
TextEdit::get_line_column_at_pos()
already had an option to not allow "out of bounds" access, but it only checked if the row was OOB, not the column. This PR renames that argument and adds an extra argument that allows for checking the column as well.Before
tooltip_before.mp4
After
tooltip_after.mp4