From a19cc1c188fc1e338f32749cf7c3bdee7d6f559c Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Mon, 1 Jun 2009 04:00:19 -0700 Subject: [PATCH] [commit-patch] Let system decode the spaces in $VISUAL (otherwise VISUAL --- commit-patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commit-patch b/commit-patch index 31f42ce..02fec45 100755 --- a/commit-patch +++ b/commit-patch @@ -142,7 +142,7 @@ if ($commit_partial) { close PATCH; run([split(/ /,$vc{diff}), @ARGV], '>>', $patch); - system($ENV{VISUAL} || $ENV{EDITOR} || 'vi', $patch); + system(($ENV{VISUAL} || $ENV{EDITOR} || 'vi')." ".$patch); if (defined $message) { open PATCH, '<', $patch or die "couldn't read $patch: $!\n"; -- 2.51.2