#!/usr/bin/perl
+no lib '.';
use warnings;
use strict;
-use lib '.'; # For use in nonstandard directory, munged by Makefile.
+use FindBin; use lib $FindBin::Bin; # For use in nonstandard directory, munged by Makefile.
use IkiWiki;
use IkiWiki::Plugin::comments;
use Getopt::Long;
@editor=split(' ', $ENV{EDITOR});
}
if (exists $ENV{VISUAL}) {
- @editor=split(' ', $ENV{VISUAL});
+ @editor=split(' ', $ENV{VISUAL});
}
exec(@editor, $file);
}