try
{
this.Clear();
- this.FireUpdateEvent = false;
this.LayoutLines.IsFrozneDirtyFlag = true;
await this.buffer.LoadAsync(fs, tokenSource);
}
finally
{
- this.FireUpdateEvent = true;
+ this.PerformLayout();
//これ以降の操作にだけダーティフラグを適用しないとおかしなことになる
this.LayoutLines.IsFrozneDirtyFlag = false;
if (this.LoadProgress != null)
#endif
Array.Clear(str, 0, str.Length);
} while (readCount > 0);
-
- this.Update(this, new DocumentUpdateEventArgs(UpdateType.Clear, -1, -1, -1));
- this.Update(this, new DocumentUpdateEventArgs(UpdateType.Replace, 0, 0, buf.Count));
}
internal void ReplaceRegexAll(LineToIndexTable layoutlines, Regex regex, string pattern, bool groupReplace)