From ad22ff1ffaae69eabf00047da75d5cfefead178c Mon Sep 17 00:00:00 2001 From: romkatv Date: Mon, 13 Jan 2020 22:32:23 +0100 Subject: [PATCH] speed up --- internal/p10k.zsh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index b06fe754..3da8ba0a 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5537,9 +5537,11 @@ function _p9k_parse_buffer() { state=h continue ;; - '`'[^'`']##'`'|'"`'[^'`']##'`"'|'$('[^')']##')'|'"$('[^')']##')"'|['<>=']'('[^')']##')') - s=${${token##('"'|)(['$<>']|)?}%%?('"'|)} - (( ic )) && tokens+=(';' ${(Z+C+)s}) || tokens+=(';' ${(z)s}) + *('`'|['<>=$']'(')*) + if [[ $token == ('`'[^'`']##'`'|'"`'[^'`']##'`"'|'$('[^')']##')'|'"$('[^')']##')"'|['<>=']'('[^')']##')') ]]; then + s=${${token##('"'|)(['$<>']|)?}%%?('"'|)} + (( ic )) && tokens+=(';' ${(Z+C+)s}) || tokens+=(';' ${(z)s}) + fi ;; esac