OSDN Git Service

ドキュメントが更新されていない場合でもシンタックスハイライトと折り畳みの再構築が行われてしまうバグを修正した
authorkonekoneko <test2214@hotmail.co.jp>
Wed, 8 Jul 2015 21:28:27 +0000 (06:28 +0900)
committerkonekoneko <test2214@hotmail.co.jp>
Wed, 8 Jul 2015 21:28:27 +0000 (06:28 +0900)
Common/LineToIndex.cs

index b321b5a..7e15546 100644 (file)
@@ -702,7 +702,8 @@ namespace FooEditEngine
             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
@@ -754,7 +755,8 @@ namespace FooEditEngine
                 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