Skip to content

Commit

Permalink
Refactor: Quote $_forgit_preview_context in _forgit_diff
Browse files Browse the repository at this point in the history
  • Loading branch information
sandr01d committed Mar 24, 2024
1 parent 0a8a70b commit 25f5865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git-forgit
Original file line number Diff line number Diff line change
Expand Up @@ -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[*]} > \"
Expand Down

0 comments on commit 25f5865

Please sign in to comment.