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
This commit is contained in:
Christophe Meriaux 2020-01-20 20:34:50 +01:00 committed by Don HO
parent 8fdfc4c2ac
commit 5d1dcc1253

View File

@ -512,6 +512,7 @@ void Finder::gotoFoundLine()
// Switch to another document // Switch to another document
::SendMessage(::GetParent(_hParent), WM_DOOPEN, 0, reinterpret_cast<LPARAM>(fInfo._fullPath.c_str())); ::SendMessage(::GetParent(_hParent), WM_DOOPEN, 0, reinterpret_cast<LPARAM>(fInfo._fullPath.c_str()));
(*_ppEditView)->_positionRestoreNeeded = false;
Searching::displaySectionCentered(fInfo._start, fInfo._end, *_ppEditView); Searching::displaySectionCentered(fInfo._start, fInfo._end, *_ppEditView);
// Then we colourise the double clicked line // Then we colourise the double clicked line