diff options
| author | kj-sh604 | 2025-07-16 22:10:52 -0400 |
|---|---|---|
| committer | kj-sh604 | 2025-07-16 22:10:52 -0400 |
| commit | 1e204d36c1fab9884f65618ccca019d8cd5f9386 (patch) | |
| tree | 962ebadaa02a15d2f8441b290daf330bfbd48417 /.config/shell/zsh-fast-syntax-highlighting/:chroma/-precommand.ch | |
| parent | 7c9e54b5366ada655baf8c2b61914182840d6bb6 (diff) | |
refactor: update `zsh-fast-syntax-highlighting` plugin
Diffstat (limited to '.config/shell/zsh-fast-syntax-highlighting/:chroma/-precommand.ch')
| -rw-r--r-- | .config/shell/zsh-fast-syntax-highlighting/:chroma/-precommand.ch | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/.config/shell/zsh-fast-syntax-highlighting/:chroma/-precommand.ch b/.config/shell/zsh-fast-syntax-highlighting/:chroma/-precommand.ch deleted file mode 100644 index 7e85a06..0000000 --- a/.config/shell/zsh-fast-syntax-highlighting/:chroma/-precommand.ch +++ /dev/null @@ -1,17 +0,0 @@ -# vim:ft=zsh:et:sw=4 - -local __first_call="$1" __start_pos="$3" __end_pos="$4" - -[[ "$__arg_type" = 3 ]] && return 2 - -(( __first_call )) && { - (( __start=__start_pos-${#PREBUFFER}, __end=__end_pos-${#PREBUFFER}, __start >= 0 )) \ - && reply+=("$__start $__end ${FAST_HIGHLIGHT_STYLES[${FAST_THEME_NAME}precommand]}") - (( next_word = (next_word & ~2) | 4 | 1 )) -} || { - return 1 -} - -(( this_word = next_word )) -_start_pos=$_end_pos -return 0 |
