Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
Aide
Connexion
isprogram
/
zsh-syntax-highlighting
miroir de
https://github.com/zsh-users/zsh-syntax-highlighting.git
Suivre
1
Ajouter aux favoris
0
Bifurcation
0
Code
Tickets
0
Projects
0
Versions
17
Wiki
Activité
Parcourir la source
autoload add-zsh-hook && provide a nicer error message if that fails due to old zsh version, or similar situations. Reset another variable in hook function; it can't hurt
pull/82/head
Andreas Gahr
il y a 13 ans
Parent
304ddb9400
révision
603fce64b5
1 fichiers modifiés
avec
5 ajouts
et
1 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+5
-1
zsh-syntax-highlighting.zsh
+ 5
- 1
zsh-syntax-highlighting.zsh
Voir le fichier
@ -207,8 +207,12 @@ _zsh_highlight_load_highlighters "${ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR:-${0:h}/highl
_zsh_highlight_preexec_hook
(
)
{
_ZSH_HIGHLIGHT_PRIOR_BUFFER
=
_ZSH_HIGHLIGHT_PRIOR_CURSOR
=
}
add-zsh-hook preexec _zsh_highlight_preexec_hook
autoload -U add-zsh-hook
add-zsh-hook preexec _zsh_highlight_preexec_hook 2>/dev/null
||
{
echo
'zsh-syntax-highlighting: failed loading add-zsh-hook.'
>
&
2
}
# Initialize the array of active highlighters if needed.
[
[
$#
ZSH_HIGHLIGHT_HIGHLIGHTERS -eq
0
]
]
&&
ZSH_HIGHLIGHT_HIGHLIGHTERS
=
(
main
)
||
true
Écrire
Aperçu
Chargement…
Annuler
Enregistrer