浏览代码

Fixed support for System.DoCommands

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@8055 8c9fc860-2736-0410-a75d-ab315db34111
negelef 7 年之前
父节点
当前提交
fe27aa507c
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      source/WMTextView.Mod

+ 3 - 3
source/WMTextView.Mod

@@ -3696,11 +3696,11 @@ TYPE
 				END;
 
 				(* check whether the command is System.DoCommands *)
-				IF (i < 22) THEN
+				IF (i < 17) THEN
 					string[i] := CHR(ch);
 					INC(i);
-					IF (i = 22) THEN
-						string[22] := 0X;
+					IF (i = 17) THEN
+						string[17] := 0X;
 						IF (string = "System.DoCommands") OR Strings.StartsWith2("PreliminaryCommands",string) THEN
 							sDoCommands := TRUE;
 						END;