Fixes #977. Check for view.component before calling view.setScrollTop(value)

This commit is contained in:
Glavin Wiechert 2016-12-30 02:44:26 -04:00
parent 604b6340d6
commit ad8171e756
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ getScrollTop = (editor) ->
view?.getScrollTop()
setScrollTop = (editor, value) ->
view = atom.views.getView(editor)
view?.setScrollTop value
view?.component?.setScrollTop value
getCursors = (editor) ->
cursors = editor.getCursors()