mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fix console backspace exception (#4465)
This commit is contained in:
@@ -196,7 +196,7 @@ namespace Robust.Server.Console
|
||||
break;
|
||||
|
||||
case ConsoleKey.Backspace:
|
||||
if (currentBuffer.Length > 0)
|
||||
if (currentBuffer.Length > 0 && internalCursor > 0)
|
||||
{
|
||||
currentBuffer = currentBuffer.Remove(internalCursor - 1, 1);
|
||||
internalCursor--;
|
||||
|
||||
Reference in New Issue
Block a user