We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ab62e7 commit 80839fcCopy full SHA for 80839fc
src/engine/framework/ConsoleField.cpp
@@ -92,7 +92,7 @@ namespace Console {
92
Cmd::Args args(std::string(commandStart, commandEnd));
93
int argNum = args.Argc() - 1;
94
std::string prefix;
95
- if (!args.Argc() || Str::cisspace(GetText()[GetCursorPos() - 1])) {
+ if (!args.Argc() || !GetCursorPos() || Str::cisspace(GetText()[GetCursorPos() - 1])) {
96
argNum++;
97
} else {
98
prefix = args.Argv(argNum);
0 commit comments