[bugs:#1833] Unfolding after deleting line before folded region
Status: open
Group: Bug
Created: Sat May 28, 2016 02:07 PM UTC by mLipok
Last Updated: Sat May 28, 2016 02:07 PM UTC
Owner: nobody
When you have folder region of code, and trying to delete one line before this region, then entire folding for this region is going to be unfolded.
According to me this is not normal behavior, as the removal of one line should not affect the display of another.
Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
I meant "When you have folded region of code"
Automatic expansion is performed when there is a possibility of orphaning hidden lines without a visible header to unhide them. The possible control flows and data visibility can be complex and the implementation errs on the side of ensuring that no orphans occur. It has changed multiple times before such as with [#1799] and its possible the implementation could be improved further.
I will not be working on this myself although others may.
[bugs:#1833] Unfolding after deleting line before folded region
Status: open
Group: Bug
Labels: scintilla folding
Created: Sat May 28, 2016 02:07 PM UTC by mLipok
Last Updated: Sat May 28, 2016 02:12 PM UTC
Owner: Neil Hodgson
Thanks for your answer.
[bugs:#1833] Unfolding after deleting line before folded region
Status: open
Group: Bug
Labels: scintilla folding
Created: Sat May 28, 2016 02:07 PM UTC by mLipok
Last Updated: Sun May 29, 2016 01:20 PM UTC
Owner: Neil Hodgson
When you have folder region of code, and trying to delete one line before this region, then entire folding for this region is going to be unfolded.
According to me this is not normal behavior, as the removal of one line should not affect the display of another.
Yeah, this is an annoying piece of behavior, can anyone point the part of the code where I should look to propose a fix?
[bugs:#1833] Unfolding after deleting line before folded region
Status: open
Group: Bug
Labels: scintilla folding
Created: Sat May 28, 2016 02:07 PM UTC by mLipok
Last Updated: Sun May 29, 2016 08:39 PM UTC
Owner: Neil Hodgson
When you have folder region of code, and trying to delete one line before this region, then entire folding for this region is going to be unfolded.
According to me this is not normal behavior, as the removal of one line should not affect the display of another.
Start in the handling for ModificationFlags::BeforeDelete
in Editor::NotifyModified
and the resulting call to NeedShown
.
The implementation has had problems in the past and avoiding hidden unshowable text should be prioritised over fixing unnecessary expansion.
Potentially related to [#1896].
[bugs:#1833] Unfolding after deleting line before folded region
Status: open
Group: Bug
Labels: scintilla folding
Created: Sat May 28, 2016 02:07 PM UTC by mLipok
Last Updated: Thu Jun 26, 2025 05:26 AM UTC
Owner: Neil Hodgson