mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2026-10-07 03:56:22 +00:00
regerssion: Look for .version and .revision-hash in the correct place.
Fixes zsh-users/zsh-syntax-highlighting#215.
This commit is contained in:
1 parent
30f2f1f144
commit
083c47b007
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user