From 6c19e882424e3f1471b315c7970b1fb21fd79dda Mon Sep 17 00:00:00 2001 From: Don HO Date: Sun, 16 May 2021 03:23:10 +0200 Subject: [PATCH] Fix "Match Whole Word" option being enabled in RegEx Search Fix #9766 --- PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp index 022d4acd3..eef79dc16 100644 --- a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp @@ -2741,10 +2741,7 @@ void FindReplaceDlg::enableFindDlgItem(int dlgItemID, bool isEnable /* = true*/) HWND h = ::GetDlgItem(_hSelf, dlgItemID); if (!h) return; - if (::IsWindowVisible(h)) - { - ::EnableWindow(h, isEnable ? TRUE : FALSE); - } + ::EnableWindow(h, isEnable ? TRUE : FALSE); // remember the real state of this control being enabled/disabled _controlEnableMap[dlgItemID] = isEnable;