From b027c1cc830e5b291b00ce3a6f3e92bebeea6f31 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 3 Sep 2013 14:59:12 -0400 Subject: one more fix --- lib/Reply/Plugin/Editor.pm | 4 ++-- 1 file 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'); -- cgit v1.2.3