diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-09-03 14:59:12 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-09-03 16:50:15 -0400 |
commit | b027c1cc830e5b291b00ce3a6f3e92bebeea6f31 (patch) | |
tree | 2d11b9987d8ee06eba829776f66ec5c22e42264b | |
parent | 30d7375bba8b179dedf1c2ca322d758e5330752d (diff) | |
download | reply-b027c1cc830e5b291b00ce3a6f3e92bebeea6f31.tar.gz reply-b027c1cc830e5b291b00ce3a6f3e92bebeea6f31.zip |
one more fix
-rw-r--r-- | lib/Reply/Plugin/Editor.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Reply/Plugin/Editor.pm b/lib/Reply/Plugin/Editor.pm index 816e4fd..b0f9415 100644 --- a/lib/Reply/Plugin/Editor.pm +++ b/lib/Reply/Plugin/Editor.pm @@ -53,7 +53,7 @@ class Reply::Plugin::Editor extends Reply::Plugin { ); } - my $!current_text = do { + my $current_text = do { local $/; if (open my $fh, '<', $line) { <$fh>; @@ -63,7 +63,7 @@ class Reply::Plugin::Editor extends Reply::Plugin { return ''; } }; - $text = $!editor->edit($!current_text, '.pl'); + $text = $!editor->edit($current_text, '.pl'); } else { $text = $!editor->edit($!current_text, '.pl'); |