diff --git a/modules/input/init.zsh b/modules/input/init.zsh index be9de1d..6fb2bde 100644 --- a/modules/input/init.zsh +++ b/modules/input/init.zsh @@ -102,6 +102,15 @@ if [[ -n "${key_info[BackTab]}" ]]; then bindkey "${key_info[BackTab]}" reverse-menu-complete fi +# Redisplay after completing, and avoid blank prompt after +expand-or-complete-with-redisplay() { + print -n '...' + zle expand-or-complete + zle redisplay +} +zle -N expand-or-complete-with-redisplay +bindkey "${key_info[Control]}I" expand-or-complete-with-redisplay + # Put into application mode and validate ${terminfo} zle-line-init() { if (( ${+terminfo[smkx]} )); then