docs: Track making the new codepath conditional upon the 'memo=' feature.

The new codepath is used in 5.8.0.2 and newer; see zsh-syntax-highlighting.zsh:417.
This commit is contained in:
Daniel Shahaf 2020-08-09 10:54:01 +00:00
parent cba4a1bc2e
commit 7cc6226477

View File

@ -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