summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-05-20 16:18:30 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-05-20 16:18:30 +0900
commitcca543d0cdbb99ae5649fdf9d94ea1c62c67ad2e (patch)
tree9311b067518ac2c8710ebcf598988c396ec765cb /shell
parent34e5e2dd8200fc2cf4b298cd2d5583f2875c7a70 (diff)
[zsh-completion] Fix #236 - zle redisplay
Diffstat (limited to 'shell')
-rw-r--r--shell/completion.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/completion.zsh b/shell/completion.zsh
index 99cc112c..57c4222f 100644
--- a/shell/completion.zsh
+++ b/shell/completion.zsh
@@ -37,8 +37,8 @@ _fzf_path_completion() {
matches=${matches% }
if [ -n "$matches" ]; then
LBUFFER="$lbuf$matches$tail"
- zle redisplay
fi
+ zle redisplay
break
fi
dir=$(dirname "$dir")
@@ -70,8 +70,8 @@ _fzf_list_completion() {
matches=$(eval "$src" | ${=fzf} ${=FZF_COMPLETION_OPTS} ${=fzf_opts} -q "$prefix")
if [ -n "$matches" ]; then
LBUFFER="$lbuf$matches "
- zle redisplay
fi
+ zle redisplay
}
_fzf_telnet_completion() {
@@ -122,8 +122,8 @@ fzf-completion() {
matches=$(ps -ef | sed 1d | ${=fzf} ${=FZF_COMPLETION_OPTS} -m | awk '{print $2}' | tr '\n' ' ')
if [ -n "$matches" ]; then
LBUFFER="$LBUFFER$matches"
- zle redisplay
fi
+ zle redisplay
# Trigger sequence given
elif [ ${#tokens} -gt 1 -a "$tail" = "$trigger" ]; then
d_cmds=(cd pushd rmdir)