Fix "unhide lines" markers disappears issue
How to reproduce: 1. Select a few lines, trigger "Hide lines". 2. Select a few other lines, trigger "Hide lines" as well. 3. Unhide the topmost block by clicking on the appropriate marker. 4. The marker to restore the other block disappear. So the block is still hidden, it cannot be unhidden and there is no more visual indication there are hidden lines! Fix #1112, Close #5665
This commit is contained in:
parent
36230cb31c
commit
155c93d3b0
@ -3266,7 +3266,13 @@ void ScintillaEditView::runMarkers(bool doHide, size_t searchStart, bool endOfDo
|
||||
if ( ((state & (1 << MARK_HIDELINESEND)) != 0) )
|
||||
{
|
||||
if (doDelete)
|
||||
{
|
||||
execute(SCI_MARKERDELETE, i, MARK_HIDELINESEND);
|
||||
if (!endOfDoc)
|
||||
{
|
||||
return; //done, only single section requested
|
||||
} //otherwise keep going
|
||||
}
|
||||
else if (isInSection)
|
||||
{
|
||||
if (startShowing >= i)
|
||||
|
Loading…
Reference in New Issue
Block a user