X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/1d6dec40ebde1afa81aec05a68dc5649782c4b1f..c142dba356b757facd6684a99623c58430b7221e:/ikiwiki-comment.in diff --git a/ikiwiki-comment.in b/ikiwiki-comment.in index 0891766ab..174647b06 100755 --- a/ikiwiki-comment.in +++ b/ikiwiki-comment.in @@ -1,7 +1,8 @@ #!/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; @@ -115,7 +116,7 @@ sub exec_editor { @editor=split(' ', $ENV{EDITOR}); } if (exists $ENV{VISUAL}) { - @editor=split(' ', $ENV{VISUAL}); + @editor=split(' ', $ENV{VISUAL}); } exec(@editor, $file); }