Single quote wasn't updating quote state when backspaced

This commit is contained in:
mpohoreski 2006-06-29 05:39:42 +00:00
parent ba1f67620f
commit 6103c7f76d

View File

@ -205,7 +205,8 @@ bool ConsoleInputBackSpace()
{ {
g_nConsoleInputChars--; 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_bConsoleInputQuoted = ! g_bConsoleInputQuoted;
g_pConsoleInput[ g_nConsoleInputChars ] = 0; g_pConsoleInput[ g_nConsoleInputChars ] = 0;