/// <remarks>デフォルトではドキュメントが更新されている時にだけ再生成されます</remarks>\r
public bool GenerateFolding(bool force = false)\r
{\r
- if (this.Document.Length == 0)\r
+ if (this.Document.Length == 0 || this.Document.IsLocked)\r
return false;\r
long nowTick = DateTime.Now.Ticks;\r
if (force || Math.Abs(nowTick - this.lastUpdateTicks) >= AllowCallTicks)\r
/// </summary>\r
public bool HilightAll(bool force = false)\r
{\r
- if (this.Hilighter == null)\r
+ if (this.Hilighter == null || this.Document.IsLocked)\r
return false;\r
\r
long nowTick = DateTime.Now.Ticks;\r