Page 1 of 1

Strange behavior. Odd code injected when exiting editor.

Posted: Wed Jul 24, 2019 7:41 pm
by shadowvox
This has happened to me a few times, and it's kinda frustrating. When I close the editor after saving, sometimes code is added to the source.

Example (this one happened today)...

Code: Select all

; CursorPosition = 702
; FirstLine = 690
; Folding = --
; EnableXP
; Executable = F:\RepairLog.exe
; EnableXPPng = - EnableXPPng = -g = - EnableXPPng = ----
; EnableXPPng = - EnableXPPng = - = logline()Log.exe
; EnableXPPng = - EnableXPPng = -g = - EnableXPPng = -
; EnableXPPng = - EnableXPPng = - = logline()ableXPPng = - EnableXPPng = -g = - EnableXPPng = -
; EnableXPPng = - EnableXPPng = - = logline()- EnableXPPng = - = logline()e()
; EnableXPPng = - EnableXPPng = -g = - EnableXPPng = --
; EnableXPPng = - EnableXPPng = - = logline()Log.exe
; EnableXPPng = - EnableXPPng = -g = - EnableXPPng = -
      EndIf
    EndIf
  Until Event = #PB_Event_CloseWindow
EndProcedure
All the above was obscurely added when I exited. None of that, except for "logline()" is a part of my code. Anyone know why?

__________________________________________________
Code tags added
25.07.2019
RSBasic

Re: Strange behavior. Odd code injected when exiting editor.

Posted: Wed Jul 24, 2019 10:13 pm
by Bitblazer
Inside the Purebasic IDE check the "File->preferences->editor" and it should have in an option to "save settings to" and the default is "end of file".

Re: Strange behavior. Odd code injected when exiting editor.

Posted: Wed Jul 24, 2019 10:42 pm
by shadowvox
Bitblazer wrote:Inside the Purebasic IDE check the "File->preferences->editor" and it should have in an option to "save settings to" and the default is "end of file".
Thank you very much