[BROWSEUI] Follow-up part 2 of #3242 (6b6f971)

Don't recognize backslash of the last character.
CORE-1419
This commit is contained in:
Katayama Hirofumi MZ 2020-09-28 10:41:21 +09:00
parent 9812bce271
commit 737278276f

View File

@ -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);