Bläddra i källkod

* Patch from Margers to fix bug ID #13757

git-svn-id: trunk@41079 -
michael 6 år sedan
förälder
incheckning
2927388c0a
1 ändrade filer med 2 tillägg och 3 borttagningar
  1. 2 3
      packages/ide/weditor.pas

+ 2 - 3
packages/ide/weditor.pas

@@ -5991,12 +5991,11 @@ begin
 end;
 
 procedure TCustomCodeEditor.GotoLine;
-var
-  GotoRec: TGotoLineDialogRec;
+const
+  GotoRec: TGotoLineDialogRec = (LineNo:'1';Lines:0);  {keep previous goto line number}
 begin
   with GotoRec do
   begin
-    LineNo:='1';
     Lines:=GetLineCount;
     {Linecount can be 0, but in that case there still is a cursor blinking in top
      of the window, which will become line 1 as soon as sometype hits a key.}