mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Merge pull request #5843 from atom/as-faster-select-all-on-folded-lines
Speed up `selectAll` on a buffer with many folded lines
This commit is contained in:
@@ -251,7 +251,8 @@ class Selection extends Model
|
||||
|
||||
# Public: Selects all the text in the buffer.
|
||||
selectAll: ->
|
||||
@setBufferRange(@editor.buffer.getRange(), autoscroll: false)
|
||||
@editor.unfoldAll()
|
||||
@setBufferRange(@editor.buffer.getRange(), autoscroll: false, preserveFolds: true)
|
||||
|
||||
# Public: Selects all the text from the current cursor position to the
|
||||
# beginning of the line.
|
||||
|
||||
Reference in New Issue
Block a user