Triple-clicking to select throws an error when editing is disabled #486
Closed
Description
The problem is that when selecting by triple-clicking, the tail of the selection is outside of the editor. I added a failing test in this PR.
I think it can be solved by identifying this case and then limiting the selection to the last possible position inside the editor (I guess the direction of the selection has to be taken into account as well).