From 25f58659ded0900e2ccbce12fd7e7533095ff621 Mon Sep 17 00:00:00 2001 From: sandroid Date: Sun, 24 Mar 2024 16:03:29 +0100 Subject: [PATCH] Refactor: Quote $_forgit_preview_context in _forgit_diff --- bin/git-forgit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-forgit b/bin/git-forgit index 2db6d77..9d0d203 100755 --- a/bin/git-forgit +++ b/bin/git-forgit @@ -263,7 +263,7 @@ _forgit_diff() { opts=" $FORGIT_FZF_DEFAULT_OPTS +m -0 --bind=\"enter:execute($FORGIT diff_enter {} $escaped_commits | $_forgit_enter_pager)\" - --preview=\"$FORGIT diff_view {} $_forgit_preview_context $escaped_commits\" + --preview=\"$FORGIT diff_view {} \"$_forgit_preview_context\" $escaped_commits\" --bind=\"alt-e:execute-silent($FORGIT edit_diffed_file {})+refresh-preview\" $FORGIT_DIFF_FZF_OPTS --prompt=\"${commits[*]} > \"