Skip to content

Commit

Permalink
regerssion: Look for .version and .revision-hash in the correct place.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielshahaf committed Oct 21, 2015
1 parent 30f2f1f commit 083c47b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zsh-syntax-highlighting.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

if [[ -o function_argzero ]]; then
# $0 is reliable
ZSH_HIGHLIGHT_VERSION=$(<"$0:h"/.version)
ZSH_HIGHLIGHT_REVISION=$(<"$0:h"/.revision-hash)
ZSH_HIGHLIGHT_VERSION=$(<"$0:A:h"/.version)
ZSH_HIGHLIGHT_REVISION=$(<"$0:A:h"/.revision-hash)
if [[ $ZSH_HIGHLIGHT_REVISION == \$Format:* ]]; then
# When running from a source tree without 'make install', $ZSH_HIGHLIGHT_REVISION
# would be set to '$Format:%H$' literally. That's an invalid value, and obtaining
Expand Down

0 comments on commit 083c47b

Please sign in to comment.