On 6/9/22 7:56 PM, Ernie Rael wrote:
On 6/9/22 6:52 AM, Laszlo Kishalmi wrote:
You might also check how the editor handles the reload, and try to improve the caret persistence situation.
[snip]
In DocumentOpenClose around line 761 there is code to preserve caret positions; this code uses positions from Document.createPosition, not positions from CES. It also seems to be using offset. This may be related to the problems with caret positions that you mention. I'm not exactly sure what observed behavior you were referring to.

I just stepped through this code and the exact same offset is saved and restored. That code is broken. The only explanation is that the created Position is on the doc after reload.

-ernie


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to