From 9b9a4aa9b313d887c2529e07308b79f1a66aaa01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Casaj=C3=BAs?= Date: Sat, 5 May 2012 15:39:14 +0200 Subject: [PATCH] Use expand-or-complete for shell expansion Fix current word completion as described in: http://www.zsh.org/mla/users/2003/msg00610.html. --- 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 9979960..0fbd571 100644 --- a/modules/editor/init.zsh +++ b/modules/editor/init.zsh @@ -174,7 +174,7 @@ function expand-or-complete-with-indicator { local indicator zstyle -s ':omz:module:editor' completing 'indicator' print -Pn "$indicator" - zle expand-or-complete-prefix + zle expand-or-complete zle redisplay } zle -N expand-or-complete-with-indicator @@ -275,7 +275,7 @@ for keymap in 'emacs' 'viins'; do bindkey -M "$keymap" "$key_info[BackTab]" reverse-menu-complete # Complete in the middle of word. - bindkey -M "$keymap" "$key_info[Control]I" expand-or-complete-prefix + bindkey -M "$keymap" "$key_info[Control]I" expand-or-complete # Expand .... to ../.. if zstyle -t ':omz:module:editor' dot-expansion; then