Copy&Paste in Editor window

DoDo

Member³
While I was making my code better orgainized in package body with a lot of functions noticed something strange.
When I cut a function and paste it again suddenly before keywords "Begin", "Else If", "End" and "End If" appears one new line but not in first occurance of "ElsIf".
So this:

Code:
Function x return ... is
  A ...
  B ...
  C ...
Begin
  If A = B Then
    Null;
  ElsIf C = D Then
    Null;
  ElsIf E = F Then
    Null;
  End If;
End;

After paste looks something like this:

Code:
Function x return ... is
  A ...
  B ...
  C ...

Begin
  If A = B Then
    Null;
  ElsIf C = D Then
    Null;

  ElsIf E = F Then
    Null;

  End If;

End;

I can't say that I noticed this before. Is this some setting or a bug?
 
I cannot reproduce this. Maybe the origin of the source code had extra or incorrect CR and/or LF characters?
 
When I save the file, and reopen it, for a while everything is OK, but it starts again. Still haven't found when and what exact happens, but i'll try to exam the file with hex editor, searching for an invalid characters.
 
Back
Top