eirikbakke opened a new pull request, #8324:
URL: https://github.com/apache/netbeans/pull/8324
Here are a few smaller bug fixes in the ide/editor.lib2 module, each in a
separate commit (since they are independent of each other).
* For platform apps that use the THIN_LINE_CARET option, on HiDPI monitors,
fix a paint bug where a pixel-thick line from the caret may remain outside the
repaint area, leaving "cursor droppings" behind as the user types.
* Avoid a NullPointerException that could occur if an editor is closed while
MacOS trackpad scrolling events are still coming in.
* Fix an editor repaint bug which could leave lines appearing duplicated.
Easy to reproduce on plain text files; see the commit for reproduction steps.
<img width="1035" alt="image"
src="https://github.com/user-attachments/assets/b203d8cb-04b1-449f-a39c-c153131eeb98"
/>
The cause was clear: An existing comment in
o.n.modules.editor.lib2.view.ViewBuilder explains that "For valid firstReplace
the current impl repaints whole line", but that repaint was in a block of code
that was being skipped as an optimization (the "accurate span" calculation).
The fix is to check for the "firstReplace" case and ensure that repaint() will
be called regardless (via the checkLayoutUpdate method).
* When line wrapping is enabled, adjust the wrap line length so that the
text caret can't end up completely outside the scroll viewport.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists