If I go to https://codemirror.net/demo/bidi.html and using the mouse, select 1 full line and the first half of the next line, the visual indication of the selection shows that I have selected both lines. However, if I press delete, it will only delete what I actually selected with the mouse.
I tried inspecting the DOM, and could not figure out if the display of the selection is done by CodeMirror. It does not seem that way as I cannot see any spans that align with what is marked.
Does anyone know of a good way of solving this?