• R/O
  • HTTP
  • SSH
  • HTTPS

FooEditor: Commit


Commit MetaInfo

Revision1474636064b4681f9d5be7d5555f0b4bca29e922 (tree)
Time2019-08-25 19:10:23
Authortest <test@yaho...>
Commitertest

Log Message

javascriptでかっこが正しく対応していない場合、落ちることがあった

Change Summary

Incremental Difference

--- a/Common/CLangFoldingGenerator.cs
+++ b/Common/CLangFoldingGenerator.cs
@@ -48,7 +48,7 @@ namespace FooEditor
4848 foreach (string lineStr in doc.GetLines(start, end))
4949 {
5050 Match m = null;
51- if(level < this.BeginFolding.Length)
51+ if(level >= 0 && level < this.BeginFolding.Length)
5252 m = this.BeginFolding[level].Match(lineStr);
5353 if (m != null && m.Success)
5454 beginIndexs.Push(new TextLevelInfo(lineHeadIndex + m.Index, level));
Show on old repository browser