]> git.mjollnir.org Git - cil.git/commitdiff
Soliciting text from an external editor should work with EDITORs that use arguments...
authorBrian Smith <bsmith@swig505.com>
Sat, 2 Aug 2008 08:45:52 +0000 (01:45 -0700)
committerBrian Smith <bsmith@swig505.com>
Sat, 2 Aug 2008 08:45:52 +0000 (01:45 -0700)
lib/CIL/Utils.pm

index 47f7ada21d0c5d8b8b0e44a15a619448accbd2e3..5394e61bafdad71e5ef89021ae84e15ec2c2cb63 100644 (file)
@@ -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 ) {