Skip to content

Commit 0eb411c

Browse files
committed
sizeof change bug fix
1 parent 1c0bc36 commit 0eb411c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

embedded_cli.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ bool embedded_cli_insert_char(struct embedded_cli *cli, char ch)
266266
}
267267

268268
case 'C':
269-
if (cli->cursor <= cli->len - cli->counter) {
269+
if (cli->cursor + cli->counter <= cli->len) {
270270
cli->cursor += cli->counter;
271271
term_cursor_fwd(cli, cli->counter);
272272
}

0 commit comments

Comments
 (0)