Single quote wasn't updating quote state when backspaced
This commit is contained in:
parent
28f4e5b37c
commit
d3aff57116
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue