From 78ed91af5cf56bd0e0195c66048064876e285761 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 10 Feb 2024 00:15:30 -0600 Subject: [PATCH] Treat escape sequences like other replacements --- src/platform/windows/misc.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/platform/windows/misc.cpp b/src/platform/windows/misc.cpp index cd16e178..1bbfe113 100644 --- a/src/platform/windows/misc.cpp +++ b/src/platform/windows/misc.cpp @@ -722,9 +722,8 @@ namespace platf { switch (next_char) { // Escape character case L'%': - // Skip this character and the next one - match_pos += 2; - continue; + match_replacement = L'%'; + break; // Argument replacements case L'0':