Closed run4flat closed 8 years ago
Here is an example of the selection:
and the result of the paste into another text editor:
Hi David,
I can't reproduce the exact results you're getting, but mine resuls are weird too. I think I've fixed it. The problem the function was trying to fix was the case for newly implemented bidirectional edit. Please take a look if it works for you.
/dk
Text selection gives the wrong result due to incorrect logic in
selection_to_physical
. I am not sure what the function is trying to achieve, so I am not sure how to fix things.To reproduce the problem, run the text editor example script (editor.pl). Type
abc
in the first row anddef
in the second row. Select fromc
tod
, over the newline (Shift-Down-Left). Copy, then paste into another text editor. I getbc\nde
instead of the expectedc\nd
.I am running v1.44, but it persists in the latest repository, I believe.