From 1e24b9282584dfa5e054f5fe79755cac7c455e15 Mon Sep 17 00:00:00 2001 From: Yutian Li Date: Thu, 25 May 2017 22:55:36 -0700 Subject: [PATCH] [master] Do not redisplay if there is no completion indicator. --- modules/editor/init.zsh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/editor/init.zsh b/modules/editor/init.zsh index f1260021..3b7b1abe 100644 --- a/modules/editor/init.zsh +++ b/modules/editor/init.zsh @@ -201,9 +201,13 @@ zle -N expand-dot-to-parent-directory-path function expand-or-complete-with-indicator { local indicator zstyle -s ':prezto:module:editor:info:completing' format 'indicator' - print -Pn "$indicator" - zle expand-or-complete - zle redisplay + if [[ -z "${indicator}" ]]; then + zle expand-or-complete + else + print -Pn "$indicator" + zle expand-or-complete + zle redisplay + fi } zle -N expand-or-complete-with-indicator