You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
452 B

  1. # vim:ft=zsh:et:sw=4
  2. local __first_call="$1" __start_pos="$3" __end_pos="$4"
  3. [[ "$__arg_type" = 3 ]] && return 2
  4. (( __first_call )) && {
  5. (( __start=__start_pos-${#PREBUFFER}, __end=__end_pos-${#PREBUFFER}, __start >= 0 )) \
  6. && reply+=("$__start $__end ${FAST_HIGHLIGHT_STYLES[${FAST_THEME_NAME}precommand]}")
  7. (( next_word = (next_word & ~2) | 4 | 1 ))
  8. } || {
  9. return 1
  10. }
  11. (( this_word = next_word ))
  12. _start_pos=$_end_pos
  13. return 0