diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-01-12 14:07:34 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-01-12 14:07:34 +0300 |
commit | b8981328bb251a242443cb3199179cf09d427ead (patch) | |
tree | 4cdb1e5aa0836142eb9e954de49498b071af5c9a | |
parent | 02a5d21f1255329b722346e34e5422f697d192ba (diff) |
minor opitimization
-rw-r--r-- | internal/p10k.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index c5f5578b..3fc23c0a 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5664,7 +5664,7 @@ function _p9k_widget_hook() { P9K_COMMANDS=($_p9k__last_commands) else _p9k__last_buffer=$PREBUFFER$BUFFER - _p9k_parse_buffer $_p9k__last_buffer 32 + [[ -n $_p9k__last_buffer ]] && _p9k_parse_buffer $_p9k__last_buffer 32 _p9k__last_commands=($P9K_COMMANDS) fi (( $+functions[p10k-on-post-widget] )) && p10k-on-post-widget "${@:2}" |