From 737278276f66192d508c5dad9d024f29ee902de9 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Mon, 28 Sep 2020 10:41:21 +0900 Subject: [PATCH] [BROWSEUI] Follow-up part 2 of #3242 (6b6f971) Don't recognize backslash of the last character. CORE-1419 --- dll/win32/browseui/CAutoComplete.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/win32/browseui/CAutoComplete.cpp b/dll/win32/browseui/CAutoComplete.cpp index 5f4aff54140..1f300bc1a2a 100644 --- a/dll/win32/browseui/CAutoComplete.cpp +++ b/dll/win32/browseui/CAutoComplete.cpp @@ -304,7 +304,7 @@ static void Edit_BackWord(HWND hwndEdit) for (; 0 < iStart; --iStart) { - if (pszText[iStart - 1] == L'\\' || + if ((pszText[iStart - 1] == L'\\' && pszText[iStart] != 0) || (IsCharSpaceW(pszText[iStart - 1]) && IsCharAlphaNumericW(pszText[iStart]))) { SendMessageW(hwndEdit, EM_SETSEL, iStart, iEnd);