mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 16:45:17 -04:00
[Server] Handle backspace input if the current line is empty
This commit is contained in:
parent
59693abc74
commit
2b71cbb8fc
@ -19,7 +19,9 @@ namespace mwmp_input {
|
|||||||
windowInputBuffer.assign("");
|
windowInputBuffer.assign("");
|
||||||
}
|
}
|
||||||
else if (c == '\b') {
|
else if (c == '\b') {
|
||||||
windowInputBuffer.erase(windowInputBuffer.size() - 1);
|
auto size = windowInputBuffer.size();
|
||||||
|
if (size > 0)
|
||||||
|
windowInputBuffer.erase(size - 1);
|
||||||
}
|
}
|
||||||
else windowInputBuffer += c;
|
else windowInputBuffer += c;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user