Strange behavior. Odd code injected when exiting editor.

Everything else that doesn't fall into one of the other PB categories.
shadowvox
User
User
Posts: 14
Joined: Wed Jul 10, 2019 4:38 pm

Strange behavior. Odd code injected when exiting editor.

Post 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
Bitblazer
Enthusiast
Enthusiast
Posts: 733
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

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

Post 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".
webpage - discord chat links -> purebasic GPT4All
shadowvox
User
User
Posts: 14
Joined: Wed Jul 10, 2019 4:38 pm

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

Post 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
Post Reply