updated comments

This commit is contained in:
Brian Gough 2016-08-16 10:59:27 +01:00
parent 7fcae775ee
commit cb4f6391a2
2 changed files with 3 additions and 1 deletions

View file

@ -47,6 +47,8 @@ define [
done = () =>
if options.gotoLine?
# allow Ace to display document before moving, delay until next tick
# added delay to make this happen later that gotoStoredPosition in
# CursorPositionManager
setTimeout () =>
@$scope.$broadcast "editor:gotoLine", options.gotoLine, options.gotoColumn
,0

View file

@ -55,5 +55,5 @@ define [], () ->
gotoLine: (line, column) ->
@editor.gotoLine(line, column)
@editor.scrollToLine(line,true,true)
@editor.scrollToLine(line,true,true) # centre and animate
@editor.focus()