FIXED? Code folding
Posted: 28 Aug 2022 04:03
Tried to search for an existing post containing "folding" or "code folding" to avoid dupes. Idiotic phpBB search config blocks the search because the words are too common!
Regardless, I may have discovered a possibly niche case where code folding breaks.
Occasionally I will change branches in git running on my remote server. Then "Reload current document", effectively downloading the version from the current, but just switched to, branch, of the file with the same path and filename, into the same tab. This appears to cause folding to simply fail throughout the whole file. It's almost as if RJTE fails before it begins trying to apply folding ... or in this instance, does not realise it needs to apply / re-apply folding, perhaps because the filename and download path have not changed ... only the contents have changed?
FWIW, maybe nothing, the same seems to apply any time git changes the file on the server, such as when I gundo (alias gundo='git checkout -- ') changes in my workspace.
Regardless, I may have discovered a possibly niche case where code folding breaks.
Occasionally I will change branches in git running on my remote server. Then "Reload current document", effectively downloading the version from the current, but just switched to, branch, of the file with the same path and filename, into the same tab. This appears to cause folding to simply fail throughout the whole file. It's almost as if RJTE fails before it begins trying to apply folding ... or in this instance, does not realise it needs to apply / re-apply folding, perhaps because the filename and download path have not changed ... only the contents have changed?
FWIW, maybe nothing, the same seems to apply any time git changes the file on the server, such as when I gundo (alias gundo='git checkout -- ') changes in my workspace.