From 7d109fb3fa9de41cbde2d860b2ca4595c3d31f8d Mon Sep 17 00:00:00 2001 From: Kaleb Elwert Date: Mon, 10 Jul 2017 10:30:21 -0700 Subject: [PATCH] [editor] Ensure unbound_keys is defined as an array Somewhere around zsh 5.1, there was a change which turned typeset (and most likely local) into a keyword. In older versions of zsh, using `local x=()` will cause the () to be treated as a glob qualifier. Fixes #1373 --- modules/editor/init.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/editor/init.zsh b/modules/editor/init.zsh index a80cbbc9..4e373eea 100644 --- a/modules/editor/init.zsh +++ b/modules/editor/init.zsh @@ -289,7 +289,8 @@ fi # it will fall back and do nothing. function _prezto-zle-noop { ; } zle -N _prezto-zle-noop -local unbound_keys=( +local -a unbound_keys +unbound_keys=( "${key_info[F1]}" "${key_info[F2]}" "${key_info[F3]}"