diff options
Diffstat (limited to 'ide/wg_ScriptView.ml')
-rw-r--r-- | ide/wg_ScriptView.ml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ide/wg_ScriptView.ml b/ide/wg_ScriptView.ml index 0ab946d65..90eb78ca5 100644 --- a/ide/wg_ScriptView.ml +++ b/ide/wg_ScriptView.ml @@ -111,6 +111,10 @@ object (self) Minilib.log "==========Redo Stack End==========" end + method recenter_insert = + self#scroll_to_mark + ~use_align:false ~yalign:0.75 ~within_margin:0.25 `INSERT + method clear_undo () = history <- []; redo <- [] |