Actually jump after first word plus one char
authorJoerg Jaspert <joerg.jaspert@dlh.de>
Thu, 6 Oct 2016 10:32:23 +0000 (12:32 +0200)
committerJoerg Jaspert <joerg.jaspert@dlh.de>
Thu, 6 Oct 2016 10:32:23 +0000 (12:32 +0200)
.zsh/functions/jump_after_first_word

index f8189a1..d42151f 100644 (file)
@@ -8,5 +8,5 @@ words=(${(z)BUFFER})
 if (( ${#words} <= 1 )) ; then
     CURSOR=${#BUFFER}
 else
-    CURSOR=${#${words[1]}}
+    CURSOR=$(( ${#${words[1]}} + 1 ))
 fi