return false;
long nowTick = DateTime.Now.Ticks;
bool sync = force || !this._IsSync;
- if (sync || Math.Abs(nowTick - this.lastUpdateTicks) >= AllowCallTicks)
+ if (sync && Math.Abs(nowTick - this.lastUpdateTicks) >= AllowCallTicks)
{
this.GenerateFolding(0, this.Document.Length - 1);
this.lastUpdateTicks = nowTick;
+ this._IsSync = true;
return true;
}
return false;
this.lastUpdateTicks = nowTick;
+ this._IsSync = true;
+
return true;
}
return false;
foreach (LineToIndexTableData line in this.Lines)
line.Syntax = null;
this.ClearLayoutCache();
+ this._IsSync = false;
}
/// <summary>