[scintilla:bugs] #1833 Unfolding after deleting line before folded region

0 views
Skip to first unread message

mLipok

unread,
May 28, 2016, 10:07:52 AM5/28/16
to scintill...@googlegroups.com

[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.

mLipok

unread,
May 28, 2016, 10:12:40 AM5/28/16
to scintill...@googlegroups.com

I meant "When you have folded region of code"

Neil Hodgson

unread,
May 29, 2016, 9:20:47 AM5/29/16
to scintill...@googlegroups.com
  • labels: --> scintilla, folding
  • assigned_to: Neil Hodgson
  • Comment:

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

mLipok

unread,
May 29, 2016, 4:39:16 PM5/29/16
to scintill...@googlegroups.com

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.

Yakov

unread,
Jun 26, 2025, 1:26:32 AMJun 26
to scintill...@googlegroups.com

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.

Neil Hodgson

unread,
Jul 2, 2025, 6:59:18 PMJul 2
to scintill...@googlegroups.com

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

Reply all
Reply to author
Forward
0 new messages