Diff of /src/Editor.cxx [9ac6d1] .. [e33e4b] Maximize Restore

  Switch to side-by-side view

--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -7005,12 +7005,17 @@
 		WrapLines(true, -1);
 
 	if (!cs.GetVisible(lineDoc)) {
+		// Back up to find a non-blank line 
 		int lookLine = lineDoc;
 		int lookLineLevel = pdoc->GetLevel(lookLine);
 		while ((lookLine > 0) && (lookLineLevel & SC_FOLDLEVELWHITEFLAG)) {
 			lookLineLevel = pdoc->GetLevel(--lookLine);
 		}
 		int lineParent = pdoc->GetFoldParent(lookLine);
+		if (lineParent < 0) {
+			// Backed up to a top level line, so try to find parent of initial line 
+			lineParent = pdoc->GetFoldParent(lineDoc);
+		}
 		if (lineParent >= 0) {
 			if (lineDoc != lineParent)
 				EnsureLineVisible(lineParent, enforcePolicy);