OSDN Git Service

読込中はシンタックスハイライトの生成と折り畳みの生成を行わないようにした
authorkonekoneko <test2214@hotmail.co.jp>
Wed, 8 Jul 2015 19:07:57 +0000 (04:07 +0900)
committerkonekoneko <test2214@hotmail.co.jp>
Wed, 8 Jul 2015 19:07:57 +0000 (04:07 +0900)
Common/LineToIndex.cs

index 4650d66..9265d54 100644 (file)
@@ -700,7 +700,7 @@ namespace FooEditEngine
         /// <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
@@ -751,7 +751,7 @@ namespace FooEditEngine
         /// </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