summaryrefslogtreecommitdiffstats
path: root/shell/key-bindings.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'shell/key-bindings.zsh')
-rw-r--r--shell/key-bindings.zsh7
1 files changed, 2 insertions, 5 deletions
diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh
index c25368cb..6aacc7e1 100644
--- a/shell/key-bindings.zsh
+++ b/shell/key-bindings.zsh
@@ -29,8 +29,7 @@ __fzfcmd() {
fzf-file-widget() {
LBUFFER="${LBUFFER}$(__fsel)"
local ret=$?
- zle redisplay
- typeset -f zle-line-init >/dev/null && zle zle-line-init
+ zle reset-prompt
return $ret
}
zle -N fzf-file-widget
@@ -59,7 +58,6 @@ fzf-cd-widget() {
cd "$dir"
local ret=$?
zle fzf-redraw-prompt
- typeset -f zle-line-init >/dev/null && zle zle-line-init
return $ret
}
zle -N fzf-cd-widget
@@ -78,8 +76,7 @@ fzf-history-widget() {
zle vi-fetch-history -n $num
fi
fi
- zle redisplay
- typeset -f zle-line-init >/dev/null && zle zle-line-init
+ zle reset-prompt
return $ret
}
zle -N fzf-history-widget