diff --git a/files/home/.zsh/widgets.zsh b/files/home/.zsh/widgets.zsh index f91d83d..af88755 100644 --- a/files/home/.zsh/widgets.zsh +++ b/files/home/.zsh/widgets.zsh @@ -81,7 +81,7 @@ _dots_load_keybindings() { selection="$(rg --color=always --line-number --no-heading --hidden --glob '!.git' '' 2>/dev/null \ | fzf --ansi --delimiter=: \ --preview 'head -n $((({2}+30))) {1} | tail -n 60' \ - --preview-window='right:60%')" || { zle reset-prompt; return; } + --preview-window='right:60%')" || { zle -I; zle reset-prompt; return; } local file="${selection%%:*}" local line="${${selection#*:}%%:*}" BUFFER="${EDITOR:-vim} +${line} ${(q)file}"