From e5444ce53417da5a23284d389916e3b9b680eee2 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Sun, 22 Mar 2026 01:44:23 -0500 Subject: [PATCH] editor: use keymap array instead of word splitting --- modules/editor/init.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/editor/init.zsh b/modules/editor/init.zsh index 5798bc8..39e38d8 100644 --- a/modules/editor/init.zsh +++ b/modules/editor/init.zsh @@ -83,8 +83,8 @@ zle -N edit-command-line # Runs bindkey but for all of the keymaps. Running it with no arguments will # print out the mappings for all of the keymaps. function bindkey-all { - local keymap='' - for keymap in $(bindkey -l); do + local keymap + for keymap in "${(@f)$(bindkey -l)}"; do [[ "$#" -eq 0 ]] && printf "#### %s\n" "${keymap}" 1>&2 bindkey -M "${keymap}" "$@" done