Skip to content

Commit 9bb3db7

Browse files
committed
driver: Use stable zsh release in is-at-least calls
1 parent bb27265 commit 9bb3db7

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

zsh-syntax-highlighting.zsh

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,7 @@ _zsh_highlight()
155155
# C structs, so that none of the previous case patterns will match.
156156
#
157157
# In either case, fall back to a version check.
158-
#
159-
# The memo= feature was added to zsh in commit zsh-5.8-172-gdd6e702ee.
160-
# The version number at the time was 5.8.0.2-dev (see Config/version.mk).
161-
# Therefore, on zsh master 5.8.0.3 and newer the memo= feature is available.
162-
# However, there's also the zsh 5.8.1 release, which doesn't have the
163-
# memo= feature.
164-
#
165-
# On zsh master 5.8.0.2 between the aforementioned commit and the
166-
# first Config/version.mk bump after it (zsh-5.8-607-g75c1edde5, the
167-
# bump to 5.8.1.1-dev following the backport to master of the bump
168-
# to 5.8.1), this condition will false negative.
169-
if is-at-least 5.8.1.1 $ZSH_VERSION.0.0; then
158+
if is-at-least 5.9; then
170159
integer -gr zsh_highlight__memo_feature=1
171160
else
172161
integer -gr zsh_highlight__memo_feature=0
@@ -415,9 +404,7 @@ _zsh_highlight_call_widget()
415404
# We check this with a plain version number check, since a functional check,
416405
# as done by _zsh_highlight, can only be done from inside a widget
417406
# function — a catch-22.
418-
#
419-
# See _zsh_highlight for the magic version number.
420-
if is-at-least 5.8.1.1 $ZSH_VERSION.0.0 && _zsh_highlight__function_callable_p add-zle-hook-widget
407+
if is-at-least 5.9 && _zsh_highlight__function_callable_p add-zle-hook-widget
421408
then
422409
autoload -U add-zle-hook-widget
423410
_zsh_highlight__zle-line-finish() {

0 commit comments

Comments
 (0)