From 155c93d3b0aacf00247710eb7ab3094143168dd4 Mon Sep 17 00:00:00 2001 From: Rajendra Singh Date: Fri, 17 May 2019 21:49:49 +0530 Subject: [PATCH] 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 --- PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp index a4bf8bce8..e7a60d617 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.cpp @@ -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)