Fixes #977. Check for view.component before calling view.setScrollTop(value)
This commit is contained in:
parent
604b6340d6
commit
ad8171e756
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue