hostilefork / replpad-js

Interactive Web Console for Rebol language (Ren-C branch)
GNU Lesser General Public License v3.0
13 stars 9 forks source link

Magic Undo should restore insertion point (or selection) #78

Open hostilefork opened 5 years ago

hostilefork commented 5 years ago

A feature Ren Garden had that isn't in the replpad yet is that when you would perform an undo, it would take you back to having exactly the same selection you had when you triggered the evaluation (e.g. in a multi-line input).

This could be done by extracting the browser selection properties and annotating the input divs with the information.