Browse Source

fixed broken forward cursor fix #17

prozessorkern 5 years ago
parent
commit
e5bf8572c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/shellmatta_utils.c

+ 1 - 1
src/shellmatta_utils.c

@@ -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';