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
+ bool sync = force || !this._IsSync;\r
+ if (sync || Math.Abs(nowTick - this.lastUpdateTicks) >= AllowCallTicks)\r
{\r
this.GenerateFolding(0, this.Document.Length - 1);\r
this.lastUpdateTicks = nowTick;\r
return false;\r
\r
long nowTick = DateTime.Now.Ticks;\r
- if (force || Math.Abs(nowTick - this.lastUpdateTicks) >= AllowCallTicks)\r
+ bool sync = force || !this._IsSync;\r
+ if (sync || Math.Abs(nowTick - this.lastUpdateTicks) >= AllowCallTicks)\r
{\r
for (int i = 0; i < this.Lines.Count; i++)\r
this.HilightLine(i);\r