summaryrefslogtreecommitdiff
path: root/.urxvt
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-09-30 16:50:15 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-09-30 16:50:15 +0200
commit5409effc90a24ac9a5f63b332af6c96e8b6fdfaf (patch)
treebcd6525e07a5aeeb59bd8082f24fdac64b4e5c94 /.urxvt
parent98f8350a2a5edb8e56906b314c163cec5a0980c9 (diff)
downloaddotfiles-5409effc90a24ac9a5f63b332af6c96e8b6fdfaf.tar.gz
dotfiles-5409effc90a24ac9a5f63b332af6c96e8b6fdfaf.tar.bz2
dotfiles-5409effc90a24ac9a5f63b332af6c96e8b6fdfaf.zip
urxvt: wgetpaste fix
Diffstat (limited to '.urxvt')
-rw-r--r--.urxvt/extensions/wgetpaste8
1 files changed, 4 insertions, 4 deletions
diff --git a/.urxvt/extensions/wgetpaste b/.urxvt/extensions/wgetpaste
index 7462319..0f159c3 100644
--- a/.urxvt/extensions/wgetpaste
+++ b/.urxvt/extensions/wgetpaste
@@ -2,13 +2,14 @@
# Adds an entry to the selection popup allowing to move the current selection
# to a pastebin via wgetpaste.
+
use IPC::Open2;
sub on_start {
my ($self) = @_;
push @{ $self->{term}{selection_popup_hook} }, sub { ("Pastebin" => \&wgetpaste) }
- if `which wgetpast 2> /dev/null`;
+ if `which wgetpaste 2> /dev/null`;
return ()
}
@@ -20,7 +21,6 @@ sub wgetpaste {
print $pin $_;
close $pin;
- $_ = <$pout>;
-
- s/^.*?://;
+ # selection-popup expects the final text in $_
+ ($_ = <$pout>) =~ s/^.*?://;
}