mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Kill EditorView::isAlive and just tunnel to the model where it was used
This commit is contained in:
@@ -217,8 +217,6 @@ class EditorView extends View
|
||||
do (name, method) =>
|
||||
@command name, (e) => method.call(this, e); false
|
||||
|
||||
isAlive: -> @editor?.isAlive()
|
||||
|
||||
# {Delegates to: Editor.getCursor}
|
||||
getCursor: -> @editor.getCursor()
|
||||
|
||||
|
||||
@@ -230,7 +230,7 @@ class Gutter extends View
|
||||
@highlightedLineNumbers.push(highlightedLineNumber)
|
||||
|
||||
highlightLines: ->
|
||||
return unless @getEditorView().isAlive()
|
||||
return unless @getEditorView().editor?.isAlive()
|
||||
|
||||
if @getEditorView().getSelection().isEmpty()
|
||||
row = @getEditorView().getCursorScreenPosition().row
|
||||
|
||||
Reference in New Issue
Block a user