From 7f63223707f96a04ea96f7b224bfeacf74d0c817 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Sat, 2 Aug 2008 01:45:52 -0700 Subject: [PATCH] Soliciting text from an external editor should work with EDITORs that use arguments (i.e. mate -w) --- lib/CIL/Utils.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CIL/Utils.pm b/lib/CIL/Utils.pm index 47f7ada..5394e61 100644 --- a/lib/CIL/Utils.pm +++ b/lib/CIL/Utils.pm @@ -149,7 +149,8 @@ sub solicit { flock $fh, LOCK_UN; # run the editor - my $status = system($editor, $filename); + my @editor_args = split(/\s+/, $editor); + my $status = system(@editor_args, $filename); # check its return value if ( $status != 0 ) { -- 2.39.5