From 2b40251b519208bb359c56e0a575b6a884f17f40 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Wed, 25 Apr 2018 00:10:49 +0200 Subject: [PATCH] + fix: correct wordwrap after reverting from "Focused view" --- src/Edit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Edit.c b/src/Edit.c index ccaefb9fa..6d26f257f 100644 --- a/src/Edit.c +++ b/src/Edit.c @@ -6700,15 +6700,17 @@ void EditHideNotMarkedLineRange(HWND hwnd, DocPos iStartPos, DocPos iEndPos, boo IgnoreNotifyChangeEvent(); if (!bHideLines) { - SciCall_FoldAll(SC_FOLDACTION_EXPAND); SciCall_MarkerDeleteAll(MARKER_NP3_OCCUR_LINE); + DocLn const iLnCount = SciCall_GetLineCount(); + for (DocLn iLine = 0; iLine < iLnCount; ++iLine) { SciCall_SetFoldLevel(iLine, SC_FOLDLEVELBASE); } if (!g_bCodeFoldingAvailable) { SciCall_SetProperty("fold", "0"); } Style_SetFolding(hwnd, g_bCodeFoldingAvailable && g_bShowCodeFolding); EditApplyLexerStyle(hwnd, 0, -1); + SciCall_FoldAll(EXPAND); ObserveNotifyChangeEvent(); return; } - + EditApplyLexerStyle(hwnd, 0, -1); // reset // prepare hidde (folding) settings