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
pull/778/head
xPMo 5 years ago committed by GitHub
parent c0ff47bea5
commit debacbf530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5253,7 +5253,7 @@ _p9k_preexec1() {
} }
_p9k_preexec2() { _p9k_preexec2() {
_p9k__preexec_cmd=$2 typeset -g _p9k__preexec_cmd=$2
_p9k__timer_start=EPOCHREALTIME _p9k__timer_start=EPOCHREALTIME
} }

Loading…
Cancel
Save