Rollback change on FoldingManager.cs

This commit is contained in:
Helder Sepulveda 2017-05-25 10:18:01 -04:00 коммит произвёл GitHub
Родитель 1eed474d29
Коммит f7e9f07a4e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -279,12 +279,12 @@ namespace ICSharpCode.AvalonEdit.Folding
// auto-close #regions only when opening the document // auto-close #regions only when opening the document
if (isFirstUpdate) { if (isFirstUpdate) {
section.IsFolded = newFolding.DefaultClosed; section.IsFolded = newFolding.DefaultClosed;
isFirstUpdate = false;
} }
section.Tag = newFolding; section.Tag = newFolding;
} }
section.Title = newFolding.Name; section.Title = newFolding.Name;
} }
isFirstUpdate = false;
// remove all outstanding old foldings: // remove all outstanding old foldings:
while (oldFoldingIndex < oldFoldings.Length) { while (oldFoldingIndex < oldFoldings.Length) {
FoldingSection oldSection = oldFoldings[oldFoldingIndex++]; FoldingSection oldSection = oldFoldings[oldFoldingIndex++];