mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Don't scroll in unfoldAll if there were no folds
This commit is contained in:
@@ -4093,7 +4093,7 @@ class TextEditor {
|
||||
// Extended: Unfold all existing folds.
|
||||
unfoldAll () {
|
||||
const result = this.displayLayer.destroyAllFolds()
|
||||
this.scrollToCursorPosition()
|
||||
if (result.length > 0) this.scrollToCursorPosition()
|
||||
return result
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user