From ccfded75fdda0feee4e6e945979859b8cbd7b82d Mon Sep 17 00:00:00 2001 From: Wenxuan Zhang Date: Thu, 9 Apr 2020 11:02:58 +0800 Subject: [PATCH] fix: fix preview error on gss. #74 Former-commit-id: a5da0127c7b6b73364be975307a02808224f301c --- forgit.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index 878644b..f11fe57 100755 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -121,7 +121,7 @@ forgit::restore() { forgit::stash::show() { forgit::inside_work_tree || return 1 local cmd opts - cmd="git stash show \$(echo {}| cut -d: -f1) --color=always --ext-diff | $forgit_pager" + cmd="echo {} |cut -d: -f1 |xargs -I% git stash show --color=always --ext-diff % |$forgit_pager" opts=" $FORGIT_FZF_DEFAULT_OPTS +s +m -0 --tiebreak=index --bind=\"enter:execute($cmd | LESS='-R' less)\"