mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-05-28 17:41:37 +00:00
Debugger: Clamp long input
This commit is contained in:
parent
273d07d83f
commit
ef5421ca21
|
@ -461,7 +461,8 @@ bool ConsoleInputClear ()
|
|||
//===========================================================================
|
||||
bool ConsoleInputChar ( char ch )
|
||||
{
|
||||
if (g_nConsoleInputChars < g_nConsoleDisplayWidth) // bug? include prompt?
|
||||
if (g_nConsoleInputChars < (g_nConsoleDisplayWidth-1)) // GH #1204 Need to count the space at EOL for the cursor
|
||||
|
||||
{
|
||||
g_pConsoleInput[ g_nConsoleInputChars ] = ch;
|
||||
g_nConsoleInputChars++;
|
||||
|
|
Loading…
Reference in New Issue
Block a user