deadpixi / sam

An updated version of the sam text editor.
Other
438 stars 47 forks source link

Backspace on highlighted text should delete text #29

Closed erezschatz closed 8 years ago

erezschatz commented 8 years ago

This is part of the "make this like Plan9 sam" department.

In P9 Sam, highlight text via left click, then hit backspace deletes the text (And a character before the highlighted text), so it clears the text, then execute backspace (I'm assuming it sets dot before the highlighted text then executes backspace on dot).

In deadpixi Sam, hitting backspace after highlighting text simply performs the "set dot before highlighted text then execute backspace on dot".

As a workaround, chording a "cut" (left-click highlight, middle-click cut) does the same thing.

deadpixi commented 8 years ago

Hey @erezschatz

Please try the latest code in master, this should work correctly now. I'm going to close this issue; please reopen it if there's still a problem. Thanks!

erezschatz commented 8 years ago

Works both locally and through -r