initial
[zsh.git] / .zsh / functions / jump_after_first_word
1 # -*- mode:sh -*-
2
3 ### jump behind the first word on the cmdline.
4 ### useful to add options.
5 local words
6 words=(${(z)BUFFER})
7
8 if (( ${#words} <= 1 )) ; then
9 CURSOR=${#BUFFER}
10 else
11 CURSOR=${#${words[1]}}
12 fi