summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorxPMo <PMo_@vivaldi.net>2020-05-19 11:16:12 +0300
committerGitHub <noreply@github.com>2020-05-19 11:16:12 +0300
commitdebacbf5307b6320ab95af4b52d0187069083dc5 (patch)
tree5d64787630b4e4f28a606c7216b8ed6482326684 /internal
parentc0ff47bea59d58b027d546546509461812ae4cae (diff)
Fix warning for parameter _p9k__preexec_cmd (#735)
With `setopt warn_create_global`, I get this warning: _p9k_preexec2:1: scalar parameter _p9k__preexec_cmd created globally in function _p9k_preexec2
Diffstat (limited to 'internal')
-rw-r--r--internal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 5a980a3e..41f6ac2a 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -5253,7 +5253,7 @@ _p9k_preexec1() {
}
_p9k_preexec2() {
- _p9k__preexec_cmd=$2
+ typeset -g _p9k__preexec_cmd=$2
_p9k__timer_start=EPOCHREALTIME
}