Allow editor arguments when editing files externally.

FossilOrigin-Name: 6911614adbc752e557e394000ae6a962f1df1de940be499949de0fc5a3787698
This commit is contained in:
andres.goens@tu-dresden.de 2015-12-08 08:35:43 +00:00
parent 1685c4bbac
commit b1ff94c067

View file

@ -1628,7 +1628,10 @@ sub run_edit
# checksum it, then open it in an editor
#
my $hash_orig = $self->chksum( $self->{'ldif_fname'} );
system( $self->{'editor'}, $self->{'ldif_fname'} ) &&
my @edit_args = split(' ',$self->{'editor'});
push(@edit_args,$self->{'ldif_fname'});
# system( $self->{'editor'}, $self->{'ldif_fname'} ) &&
system( @edit_args ) &&
die "Unable to launch editor: $!\n";
# detect a total lack of change