tg_cli: fix variable type.

This commit is contained in:
levlam 2023-04-28 16:46:28 +03:00
parent bde874c1e7
commit ba4a851017

View File

@ -2035,7 +2035,7 @@ class CliClient final : public Actor {
// https://en.wikipedia.org/wiki/ANSI_escape_code#Terminal_input_sequences
if (cmd[i] == 27 && cmd[i + 1] == '[') {
// likely an ANSI escape code
int j = i + 2;
auto j = i + 2;
if ('1' <= cmd[j] && cmd[j] <= '9') {
while ('0' <= cmd[j] && cmd[j] <= '9') {
j++;