Refactor: Quote $_forgit_preview_context in _forgit_diff

This commit is contained in:
sandroid 2024-03-24 16:03:29 +01:00
parent 0a8a70bc20
commit 25f58659de
No known key found for this signature in database
GPG key ID: 91418C9982B8B76E

View file

@ -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[*]} > \"