瀏覽代碼

Paste problem fix

Margers 7 月之前
父節點
當前提交
d2df6a630c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ide/weditor.pas

+ 2 - 2
packages/ide/weditor.pas

@@ -2081,11 +2081,11 @@ begin
       exit;
       exit;
     end; *)
     end; *)
   if S='' then
   if S='' then
-    CP:=0
+    CP:=X+1
   else
   else
     begin
     begin
      CP:=0; RX:=0;
      CP:=0; RX:=0;
-     while (RX<=X) and (CP<=length(S)) do
+     while (RX<=X) {and (CP<=length(S))} do
       begin
       begin
         Inc(CP);
         Inc(CP);
         if (CP<=length(S)) and
         if (CP<=length(S)) and