sofish / pen

enjoy live editing (+markdown)
https://sofish.github.io/pen
Other
4.8k stars 410 forks source link

Processing bug if I select text by mouse from right to left #159

Open indapublic opened 9 years ago

indapublic commented 9 years ago

I have text in editor 0cjeuoo5

I'm selecting all by mouse from right to left hume_y2t

And pressing "Underline", for example yc7s6le-

And my result is not what I expected (only part of text has been processed)

ADTC commented 9 years ago

It seems when the selected text already has a formatting, sometimes this incorrect behavior appears when a second formatting is applied. It has only happened to me when I select left to right.