mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Revert "Sometimes there might not be a selection."
This reverts commit a73e6e5bd0.
This commit is contained in:
@@ -1306,7 +1306,7 @@ class Editor extends Model
|
||||
addSelectionForBufferRange: (bufferRange, options={}) ->
|
||||
@markBufferRange(bufferRange, _.defaults(@getSelectionMarkerAttributes(), options))
|
||||
selection = @getLastSelection()
|
||||
selection?.autoscroll() if @manageScrollPosition
|
||||
selection.autoscroll() if @manageScrollPosition
|
||||
selection
|
||||
|
||||
# Public: Set the selected range in buffer coordinates. If there are multiple
|
||||
|
||||
Reference in New Issue
Block a user