From 5d1dcc125328f8e8309f456fb86cf66e7e959c6b Mon Sep 17 00:00:00 2001 From: Christophe Meriaux Date: Mon, 20 Jan 2020 20:34:50 +0100 Subject: [PATCH] Fix regression of double clicking a found in files result while Word-Wrap is on Regression: Double click a found in files result while Word-Wrap is on, if file hasn't been opened, then file will be opened but Notepad++ doesn't go to the found word position. Fix #7865, close #7872 --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index a545c947..21111104 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -512,6 +512,7 @@ void Finder::gotoFoundLine() // Switch to another document ::SendMessage(::GetParent(_hParent), WM_DOOPEN, 0, reinterpret_cast(fInfo._fullPath.c_str())); + (*_ppEditView)->_positionRestoreNeeded = false; Searching::displaySectionCentered(fInfo._start, fInfo._end, *_ppEditView); // Then we colourise the double clicked line