Skip to content

Commit

Permalink
-git.ch: Correct highlight of directories
Browse files Browse the repository at this point in the history
  • Loading branch information
psprint committed Dec 3, 2019
1 parent 917ec4c commit 634ab24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion :chroma/-git.ch
Original file line number Diff line number Diff line change
Expand Up @@ -722,9 +722,10 @@ fsh__git__chroma__def=(

# A generic handler - checks whether the file exists
:chroma/-git-verify-file-or-dir() {
integer _start="$2" _end="$3" __pos __start __end
integer _start="$2" _end="$3" __pos __start __end retval
local _wrd="$4" bg

__style=
[[ -f $_wrd || -d $_wrd ]] && {
(( __start=_start, __end=_end, __start >= 0 )) && \
reply+=("$__start $__end ${FAST_HIGHLIGHT_STYLES[${FAST_THEME_NAME}correct-subtle]}")
Expand All @@ -734,6 +735,7 @@ fsh__git__chroma__def=(
(( __start=_start, __end=_end, __start >= 0 )) && \
reply+=("$__start $__end ${FAST_HIGHLIGHT_STYLES[${FAST_THEME_NAME}incorrect-subtle]}")
bg=${(M)FAST_HIGHLIGHT_STYLES[${FAST_THEME_NAME}incorrect-subtle]%bg=*}
retval=1
}

[[ -n ${FAST_HIGHLIGHT_STYLES[${FAST_THEME_NAME}path_pathseparator]} && \
Expand All @@ -752,6 +754,7 @@ fsh__git__chroma__def=(
}
}
}
return $retval
}

:chroma/-git-verify-branch() {
Expand Down

0 comments on commit 634ab24

Please sign in to comment.