Single quote wasn't updating quote state when backspaced

This commit is contained in:
mpohoreski 2006-06-29 05:39:42 +00:00
parent 28f4e5b37c
commit d3aff57116

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;