https://git.reactos.org/?p=reactos.git;a=commitdiff;h=467feb9996308ea4d3d6240a567a8faa7328610c

commit 467feb9996308ea4d3d6240a567a8faa7328610c
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Mon Sep 28 10:58:22 2020 +0900
Commit:     Katayama Hirofumi MZ <[email protected]>
CommitDate: Mon Sep 28 10:58:22 2020 +0900

    [BROWSEUI] Follow-up part 3 of #3242 (6b6f971)
    
    Also recognize slash, dot, colon, and semicolon.
    CORE-1419
---
 dll/win32/browseui/CAutoComplete.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dll/win32/browseui/CAutoComplete.cpp 
b/dll/win32/browseui/CAutoComplete.cpp
index 1f300bc1a2a..008a8185baa 100644
--- a/dll/win32/browseui/CAutoComplete.cpp
+++ b/dll/win32/browseui/CAutoComplete.cpp
@@ -304,8 +304,10 @@ static void Edit_BackWord(HWND hwndEdit)
 
     for (; 0 < iStart; --iStart)
     {
-        if ((pszText[iStart - 1] == L'\\' && pszText[iStart] != 0) ||
-            (IsCharSpaceW(pszText[iStart - 1]) && 
IsCharAlphaNumericW(pszText[iStart])))
+        WCHAR ch1 = pszText[iStart - 1];
+        WCHAR ch2 = pszText[iStart];
+        if ((wcschr(L"\\/.:;", ch1) && ch2 && !IsCharSpaceW(ch2)) ||
+            (IsCharSpaceW(ch1) && IsCharAlphaNumericW(ch2)))
         {
             SendMessageW(hwndEdit, EM_SETSEL, iStart, iEnd);
             SendMessageW(hwndEdit, EM_REPLACESEL, TRUE, (LPARAM)L"");

Reply via email to