text selected randomly in editor
Sourceforge bug #2854405
I noticed from time to time that editor selects text randomly. So when I type something gets selected and overwritten by my typing which wasn't intended.
That's the code I was able to reproduce.
-record(state, {
socket, % text
addr, % text
room % <>
}).
When at <> I type any symbol in like 500ms the whole record definition gets selected and cursor goes after the last ")" .
Very annoying.
I noticed from time to time that editor selects text randomly. So when I type something gets selected and overwritten by my typing which wasn't intended.
That's the code I was able to reproduce.
-record(state, {
socket, % text
addr, % text
room % <>
}).
When at <> I type any symbol in like 500ms the whole record definition gets selected and cursor goes after the last ")" .
Very annoying.
Leave a comment
This is the "jumping selection"-bug I've been talking about! It has to do with the method ErlangOutlinePage.refresh(), it calls setInput on the outline treeview, which triggers a setselection eventually in the ErlangEditor.doSelectionChanged() method, which is called from ErlangEditor.OutlineSelectionChangedListener.selectionChanged(SelectionChangedEvent)
Maybe there's a better way to do refresh? Do we need to do setInput at all?
Maybe there's a better way to do refresh? Do we need to do setInput at all?