From caf290fb9b71267941a5d19a63dde6e8e93fab9e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 17 Mar 2017 17:43:21 +0300 Subject: no need to rebuild the whole clist if the search window is empty --- plugins/Clist_modern/src/modern_clc.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/Clist_modern/src') diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp index 39236d404a..e2bf1a11ed 100644 --- a/plugins/Clist_modern/src/modern_clc.cpp +++ b/plugins/Clist_modern/src/modern_clc.cpp @@ -449,9 +449,7 @@ static LRESULT clcOnKeyDown(ClcData *dat, HWND hwnd, UINT, WPARAM wParam, LPARAM case VK_RETURN: pcli->pfnDoSelectionDefaultAction(hwnd, dat); SetCapture(hwnd); - dat->szQuickSearch[0] = 0; - if (dat->bFilterSearch) - pcli->pfnSaveStateAndRebuildList(hwnd, dat); + Clist_ClearSearch(hwnd, dat); return 0; case VK_F2: cliBeginRenameSelection(hwnd, dat); /*SetCapture(hwnd);*/ return 0; -- cgit v1.2.3