summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-03-05 00:05:30 -0600
committerJesse Luehrs <doy@tozt.net>2012-03-05 00:05:30 -0600
commit02f4e2e1f706971d7f291c17389697ccfa99e01c (patch)
treeb4c0672a0c207959303db242dedf8cc70ad9d305
parent43d7a3200464561d83100a9152748b381e1ad44f (diff)
downloadterm-filter-02f4e2e1f706971d7f291c17389697ccfa99e01c.tar.gz
term-filter-02f4e2e1f706971d7f291c17389697ccfa99e01c.zip
don't hardcode STDIN here
-rw-r--r--lib/Term/Filter.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Term/Filter.pm b/lib/Term/Filter.pm
index 3769150..044af70 100644
--- a/lib/Term/Filter.pm
+++ b/lib/Term/Filter.pm
@@ -154,7 +154,7 @@ sub _setup {
my $prev_winch = $SIG{WINCH};
$SIG{WINCH} = sub {
- $self->pty->slave->clone_winsize_from(\*STDIN);
+ $self->pty->slave->clone_winsize_from($self->input);
$self->pty->kill('WINCH', 1);