Run the editor example script, typing the contents as shown below. Select the line ghi, including the newline:
Hitting delete, I get this result:
Notice that the contents of the line 123 are doubled. This is a true doubling of the contents of that line, the 123 actually appears twice in the text buffer after this operation.
I'm sure that logic was put in there for a good reason, but I'm not sure what it is. Also, this is a problem I have experienced since writing App::Prima::REPL, so it's been around for a while. It is not due to the recent Bidi contributions.
Run the editor example script, typing the contents as shown below. Select the line![selection-pre-delete](https://cloud.githubusercontent.com/assets/260215/12128108/4222a5fa-b3c9-11e5-923e-66a8fb988262.png)
ghi
, including the newline:Hitting![post-delete](https://cloud.githubusercontent.com/assets/260215/12128139/77be3c74-b3c9-11e5-9133-a5666fd7b0cd.png)
delete
, I get this result:Notice that the contents of the line
123
are doubled. This is a true doubling of the contents of that line, the123
actually appears twice in the text buffer after this operation.Commenting out this line fixes the problem: https://github.com/dk/Prima/blob/058cfd5d89930adabd7ba3dad64b2ab0175f5519/Prima/Edit.pm#L2504
I'm sure that logic was put in there for a good reason, but I'm not sure what it is. Also, this is a problem I have experienced since writing App::Prima::REPL, so it's been around for a while. It is not due to the recent Bidi contributions.