From 6103c7f76d43579b225179548de37ff2405fc42c Mon Sep 17 00:00:00 2001 From: mpohoreski Date: Thu, 29 Jun 2006 05:39:42 +0000 Subject: [PATCH] Single quote wasn't updating quote state when backspaced --- source/Debugger_Console.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Debugger_Console.cpp b/source/Debugger_Console.cpp index 2cf38dbc..90d7ef2a 100644 --- a/source/Debugger_Console.cpp +++ b/source/Debugger_Console.cpp @@ -205,7 +205,8 @@ bool ConsoleInputBackSpace() { g_nConsoleInputChars--; - if (g_pConsoleInput[ g_nConsoleInputChars ] == TEXT('"')) + if ((g_pConsoleInput[ g_nConsoleInputChars ] == TCHAR_QUOTE_DOUBLE) || + (g_pConsoleInput[ g_nConsoleInputChars ] == TCHAR_QUOTE_SINGLE)) g_bConsoleInputQuoted = ! g_bConsoleInputQuoted; g_pConsoleInput[ g_nConsoleInputChars ] = 0;