Skip to content

Commit

Permalink
-git.ch: For `checkout' subcommand: input string can be a path
Browse files Browse the repository at this point in the history
  • Loading branch information
psprint committed Jul 25, 2018
1 parent cfbd820 commit 4cdb69a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chroma/-git.ch
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ local -a __lines_list
if (( __idx1 == 2 )); then
if git rev-parse --verify --quiet "$__wrd" >/dev/null 2>&1; then
__style=${FAST_THEME_NAME}builtin
elif [[ "${FAST_HIGHLIGHT[chroma-git-subcommand]}" = "checkout" && -e "$__wrd" ]]; then
__style=${FAST_THEME_NAME}path
else
__style=${FAST_THEME_NAME}unknown-token
fi
Expand Down

0 comments on commit 4cdb69a

Please sign in to comment.