Incorrect highlighting when selecting an error from the list that's in a different tab #1112
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
pde
Processing Development Environment
Most appropriate sub-area of Processing 4?
PDE
Processing version
4.4.4
Operating system
Windows 10, Debian Linux
Steps to reproduce this
"1.Open a sketch that has multiple tabs.
2.Add some errors and/or warnings in each tab.
3.Click the 'Errors' panel in the bottom of the PDE. Click on one of the errors that is in a tab you don't have open. The highlighting will likely be in the wrong place, and not match up with a line start/end correctly."
snippet
Additional context
Found a small one-line fix already which I don't think is too 'hacky'; we just need to activate the selected tab before looking up the relevant character offset for the line number. (It's basing the highlight on the char offset of that line number in the currently visible tab.)
Would you like to work on the issue?
yes plz
The text was updated successfully, but these errors were encountered: