https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9812bce2713b9620ac318…
commit 9812bce2713b9620ac318c3d4bee5934147264fd
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Mon Sep 28 10:14:36 2020 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Mon Sep 28 10:14:36 2020 +0900
[BROWSEUI] Follow-up of #3242 (6b6f971)
Recognize backslashes in Ctrl+Back.
CORE-1419
---
dll/win32/browseui/CAutoComplete.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dll/win32/browseui/CAutoComplete.cpp b/dll/win32/browseui/CAutoComplete.cpp
index e984dab2f17..5f4aff54140 100644
--- a/dll/win32/browseui/CAutoComplete.cpp
+++ b/dll/win32/browseui/CAutoComplete.cpp
@@ -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"");