Skip to content

Commit

Permalink
docs: Track making the new codepath conditional upon the 'memo=' feat…
Browse files Browse the repository at this point in the history
…ure.

The new codepath is used in 5.8.0.2 and newer; see zsh-syntax-highlighting.zsh:417.
  • Loading branch information
danielshahaf committed Aug 9, 2020
1 parent cba4a1b commit 7cc6226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ calls and after running `compinit`) in order to be able to wrap all of them.
Widgets created after z-sy-h is sourced will work, but will not update the
syntax highlighting.

In zsh 5.3 and newer,
In zsh newer than 5.8 (not including 5.8 itself),
zsh-syntax-highlighting uses the `add-zle-hook-widget` facility to install
a `zle-line-pre-redraw` hook. Hooks are run in order of registration,
therefore, z-sy-h must be sourced (and register its hook) after anything else
Expand Down

0 comments on commit 7cc6226

Please sign in to comment.