diff --git a/Build/grepWin/grepWinNP3.exe b/Build/grepWin/grepWinNP3.exe
index 0335d6c55..1b2f4c964 100644
Binary files a/Build/grepWin/grepWinNP3.exe and b/Build/grepWin/grepWinNP3.exe differ
diff --git a/Build/grepWin/grepWinNP3_x64.exe b/Build/grepWin/grepWinNP3_x64.exe
index 56cff2fd1..26731e987 100644
Binary files a/Build/grepWin/grepWinNP3_x64.exe and b/Build/grepWin/grepWinNP3_x64.exe differ
diff --git a/Versions/day.txt b/Versions/day.txt
index 6ac793b42..d1e85f890 100644
--- a/Versions/day.txt
+++ b/Versions/day.txt
@@ -1 +1 @@
-325
+326
diff --git a/res/Notepad3.exe.manifest.conf b/res/Notepad3.exe.manifest.conf
index f7e6bc804..a17a1c933 100644
--- a/res/Notepad3.exe.manifest.conf
+++ b/res/Notepad3.exe.manifest.conf
@@ -3,7 +3,7 @@
Notepad3 NF
diff --git a/src/Edit.c b/src/Edit.c
index 38ce6cb92..157d4f05d 100644
--- a/src/Edit.c
+++ b/src/Edit.c
@@ -6625,12 +6625,13 @@ bool EditFindNext(HWND hwnd, LPCEDITFINDREPLACE lpefr, bool bExtendSelection, bo
if (!bSuppressNotFound) {
InfoBoxLng(MB_OK, L"MsgNotFound", IDS_MUI_NOTFOUND);
}
- //@@@
+#ifdef _DEBUG
WCHAR fnd[256];
WCHAR msg[256];
MultiByteToWideChar(CP_UTF8, 0, szFind, -1, fnd, (int)COUNTOF(fnd));
StringCchPrintf(msg, COUNTOF(msg), L"Suchbegriff:'%s'", fnd);
MsgBoxLastError(msg, 0);
+#endif
return false;
}
diff --git a/src/Helpers.c b/src/Helpers.c
index 19200b5f2..19f34fbdb 100644
--- a/src/Helpers.c
+++ b/src/Helpers.c
@@ -1257,7 +1257,7 @@ bool ExtractFirstArgument(LPCWSTR lpArgs, LPWSTR lpArg1, LPWSTR lpArg2, int len)
}
}
TrimSpcW(lpArg1);
- UnSlashQuotes(lpArg1);
+ UnSlashChar(lpArg1, L'"');
if (lpArg2) {
TrimSpcW(lpArg2);
@@ -1945,32 +1945,29 @@ size_t UnSlashW(LPWSTR pchInOut)
}
-size_t UnSlashQuotes(LPWSTR pchInOut)
+size_t UnSlashChar(LPWSTR pchInOut, WCHAR wch)
{
- LPWSTR s = pchInOut;
- LPWSTR o = pchInOut;
LPCWSTR const sStart = pchInOut;
+ LPWSTR s = pchInOut;
+ LPWSTR o = pchInOut;
while (*s) {
- if (*s == '\\') {
+ if (*s == L'\\') {
++s;
- if (*s == L'"')
- *o = L'"';
- else if (*s == L'\\')
- *o = L'\\';
+ if (*s == wch)
+ *o++ = wch;
else {
- *o = *s; // swallow single '\'
+ *o++ = L'\\'; // restore
+ *o++ = *s;
}
}
else
- *o = *s;
-
- ++o;
+ *o++ = *s;
if (*s) {
++s;
}
}
- *o = '\0';
+ *o = L'\0';
return (size_t)((ptrdiff_t)(o - sStart));
}
diff --git a/src/Helpers.h b/src/Helpers.h
index 6c1db7c1c..c2c26ead4 100644
--- a/src/Helpers.h
+++ b/src/Helpers.h
@@ -323,7 +323,7 @@ size_t SlashW(LPWSTR pchOutput, size_t cchOutLen, LPCWSTR pchInput);
size_t UnSlashA(LPSTR pchInOut, UINT cpEdit);
size_t UnSlashW(LPWSTR pchInOut);
-size_t UnSlashQuotes(LPWSTR pchInOut);
+size_t UnSlashChar(LPWSTR pchInOut, WCHAR wch);
void TransformBackslashes(char* pszInput, bool, UINT cpEdit, int* iReplaceMsg);
void TransformMetaChars(char* pszInput, bool, int iEOLMode);
diff --git a/src/VersionEx.h b/src/VersionEx.h
index 76715730a..de7f9c3da 100644
--- a/src/VersionEx.h
+++ b/src/VersionEx.h
@@ -8,7 +8,7 @@
#define SAPPNAME "Notepad3"
#define VERSION_MAJOR 5
#define VERSION_MINOR 20
-#define VERSION_REV 325
+#define VERSION_REV 326
#define VERSION_BUILD 1
#define SCINTILLA_VER 432
#define ONIGURUMA_REGEX_VER 6.9.4
@@ -16,4 +16,4 @@
#define TINYEXPR_VER 2018.05.11
#define UTHASH_VER 2.1.0
#define VERSION_PATCH NF
-#define VERSION_COMMIT_ID t7820-rk
+#define VERSION_COMMIT_ID nebukadn