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:
Rajendra Singh 2019-05-17 21:49:49 +05:30 committed by Don HO
parent 36230cb31c
commit 155c93d3b0
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -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)