Editing folded Codeparts without automatically unfolding

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 693
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Editing folded Codeparts without automatically unfolding

Post by Kurzer »

I don't know if this is an internal "Scintilla thing", but is it possible to suppress the automatically unfolding of folded code when the folded line is edited?

For Example:

Code: Select all

Procedure.s GiveMeBackAString(sString.s)
Even if I only want to add a comment after this line... *whump* after pressing space the whole thing will be epanded.
Also if I try to delete the whole procedure in folded state: I mark the whole line, press [DEL] key... and the procedure is unfolded and only the first line was deleted.

If suppressing the automatically unfolding is not a big deal, then I am very happy if this behavior would be chooseable via editor preferences.
PB 6.12 x64, OS: Win 11 24H2 x64, Desktopscaling: 150%, CPU: I7 12700 H, RAM: 32 GB, GPU: Intel(R) Iris(R) Xe Graphics | NVIDIA GeForce RTX 3070, User age in 2025: 57y
"Happiness is a pet." | "Never run a changing system!"