mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
When updating folds, don't modify the array over which we're iterating
This commit is contained in:
@@ -117,7 +117,7 @@ class Renderer
|
||||
|
||||
handleBufferChange: (e) ->
|
||||
for row, folds of @activeFolds
|
||||
for fold in folds
|
||||
for fold in new Array(folds...)
|
||||
changeInsideFold = true if fold.handleBufferChange(e)
|
||||
|
||||
unless changeInsideFold
|
||||
|
||||
Reference in New Issue
Block a user