This commit is contained in:
Liang Ding 2014-10-21 14:56:37 +08:00
parent 1d24f77516
commit dd500f4f3f
1 changed files with 2 additions and 0 deletions

View File

@ -576,6 +576,7 @@ var wide = {
var mode = curEditor.getOption("mode");
var cursor = curEditor.getCursor();
var scrollInfo = curEditor.getScrollInfo();
var request = newWideRequest();
request.file = path;
@ -594,6 +595,7 @@ var wide = {
if (data.succ) {
curEditor.setValue(data.code);
curEditor.setCursor(cursor);
curEditor.scrollTo(null, scrollInfo.top);
}
}
});