Rollback change on FoldingManager.cs
This commit is contained in:
Родитель
1eed474d29
Коммит
f7e9f07a4e
|
@ -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++];
|
||||||
|
|
Загрузка…
Ссылка в новой задаче