From b5f33350fc53368e06b7b08f5ce26f0fe7038486 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 23 Oct 2014 07:30:01 -0400 Subject: [PATCH] feature(edit) beautify: add clearSelection, moveCursor to begin --- lib/client/edit.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/client/edit.js b/lib/client/edit.js index a940fd61..7941f06b 100644 --- a/lib/client/edit.js +++ b/lib/client/edit.js @@ -487,6 +487,8 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI RESTful.read(path + '?beautify', function(data) { Ace.setValue(data); + Ace.clearSelection(); + Ace.moveCursorTo(0, 0); }); };