소스 검색

driver: Bump the in-development is-at-least checks so they return false on zsh 5.8.1, released yesterday.

Fixes #856
Fixes #857
pull/858/head
Daniel Shahaf 2 년 전
부모
커밋
0ddb1a8d51
2개의 변경된 파일11개의 추가작업 그리고 8개의 파일을 삭제
  1. +1
    -0
      release.md
  2. +10
    -8
      zsh-syntax-highlighting.zsh

+ 1
- 0
release.md 파일 보기

@ -1,5 +1,6 @@
# Release procedure (for developers):
- Ensure every `is-at-least` invocation passes a stable zsh release's version number as the first argument
- For minor (A.B.0) releases:
- Check whether the release uses any not-yet-released zsh features
- Check open issues and outstanding pull requests

+ 10
- 8
zsh-syntax-highlighting.zsh 파일 보기

@ -158,12 +158,15 @@ _zsh_highlight()
#
# The memo= feature was added to zsh in commit zsh-5.8-172-gdd6e702ee.
# The version number at the time was 5.8.0.2-dev (see Config/version.mk).
# Therefore, on 5.8.0.3 and newer the memo= feature is available.
# Therefore, on zsh master 5.8.0.3 and newer the memo= feature is available.
# However, there's also the zsh 5.8.1 release, which doesn't have the
# memo= feature.
#
# On zsh version 5.8.0.2 between the aforementioned commit and the
# first Config/version.mk bump after it (which, at the time of writing,
# is yet to come), this condition will false negative.
if is-at-least 5.8.0.3 $ZSH_VERSION.0.0; then
# On zsh master 5.8.0.2 between the aforementioned commit and the
# first Config/version.mk bump after it (zsh-5.8-607-g75c1edde5, the
# bump to 5.8.1.1-dev following the backport to master of the bump
# to 5.8.1), this condition will false negative.
if is-at-least 5.8.1.1 $ZSH_VERSION.0.0; then
integer -gr zsh_highlight__memo_feature=1
else
integer -gr zsh_highlight__memo_feature=0
@ -413,9 +416,8 @@ _zsh_highlight_call_widget()
# as done by _zsh_highlight, can only be done from inside a widget
# function — a catch-22.
#
# See _zsh_highlight for the magic version number. (The use of 5.8.0.2
# rather than 5.8.0.3 as in the _zsh_highlight is deliberate.)
if is-at-least 5.8.0.2 $ZSH_VERSION.0.0 && _zsh_highlight__function_callable_p add-zle-hook-widget
# See _zsh_highlight for the magic version number.
if is-at-least 5.8.1.1 $ZSH_VERSION.0.0 && _zsh_highlight__function_callable_p add-zle-hook-widget
then
autoload -U add-zle-hook-widget
_zsh_highlight__zle-line-finish() {

불러오는 중...
취소
저장