Skip to content

Commit f7e9f07

Browse files
authored
Rollback change on FoldingManager.cs
1 parent 1eed474 commit f7e9f07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ICSharpCode.AvalonEdit/Folding/FoldingManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,12 @@ public void UpdateFoldings(IEnumerable<NewFolding> newFoldings, int firstErrorOf
279279
// auto-close #regions only when opening the document
280280
if (isFirstUpdate) {
281281
section.IsFolded = newFolding.DefaultClosed;
282+
isFirstUpdate = false;
282283
}
283284
section.Tag = newFolding;
284285
}
285286
section.Title = newFolding.Name;
286287
}
287-
isFirstUpdate = false;
288288
// remove all outstanding old foldings:
289289
while (oldFoldingIndex < oldFoldings.Length) {
290290
FoldingSection oldSection = oldFoldings[oldFoldingIndex++];

0 commit comments

Comments
 (0)