fixed broken forward cursor fix #17
This commit is contained in:
parent
5b6f2155eb
commit
e5bf8572c2
@ -145,7 +145,7 @@ void utils_forwardCursor(shellmatta_instance_t *inst, uint32_t length)
|
||||
char terminalCmd[16];
|
||||
size_t size;
|
||||
|
||||
length = SHELLMATTA_MAX (length, (inst->inputCount - inst->cursor));
|
||||
length = SHELLMATTA_MIN (length, (inst->inputCount - inst->cursor));
|
||||
if (length > 0u)
|
||||
{
|
||||
terminalCmd[0] = '\e';
|
||||
|
Loading…
Reference in New Issue
Block a user