[BROWSEUI] Follow-up of #3242 (6b6f971)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Mon, 28 Sep 2020 01:14:36 +0000 (10:14 +0900)
committerKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Mon, 28 Sep 2020 01:14:36 +0000 (10:14 +0900)
Recognize backslashes in Ctrl+Back.
CORE-1419

dll/win32/browseui/CAutoComplete.cpp

index e984dab..5f4aff5 100644 (file)
@@ -304,7 +304,8 @@ static void Edit_BackWord(HWND hwndEdit)
 
     for (; 0 < iStart; --iStart)
     {
-        if (IsCharSpaceW(pszText[iStart - 1]) && IsCharAlphaNumericW(pszText[iStart]))
+        if (pszText[iStart - 1] == L'\\' ||
+            (IsCharSpaceW(pszText[iStart - 1]) && IsCharAlphaNumericW(pszText[iStart])))
         {
             SendMessageW(hwndEdit, EM_SETSEL, iStart, iEnd);
             SendMessageW(hwndEdit, EM_REPLACESEL, TRUE, (LPARAM)L"");