Browse Source

Paste problem fix

Margers 7 months ago
parent
commit
d2df6a630c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/ide/weditor.pas

+ 2 - 2
packages/ide/weditor.pas

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