fixed broken forward cursor fix #17

This commit is contained in:
prozessorkern 2019-07-27 16:39:37 +02:00
parent 5b6f2155eb
commit e5bf8572c2

View File

@ -145,7 +145,7 @@ void utils_forwardCursor(shellmatta_instance_t *inst, uint32_t length)
char terminalCmd[16]; char terminalCmd[16];
size_t size; size_t size;
length = SHELLMATTA_MAX (length, (inst->inputCount - inst->cursor)); length = SHELLMATTA_MIN (length, (inst->inputCount - inst->cursor));
if (length > 0u) if (length > 0u)
{ {
terminalCmd[0] = '\e'; terminalCmd[0] = '\e';