From: elmex Date: Tue, 17 Jan 2006 17:04:18 +0000 (+0000) Subject: fixed a bug, the textfile is now deleted after upload. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=35571490a3d4cbf6c4a22a43ba8f6c63377873b9;p=dana%2Furxvt.git fixed a bug, the textfile is now deleted after upload. --- diff --git a/src/perl/selection-pastebin b/src/perl/selection-pastebin index bfdeb8ae..64f4a319 100644 --- a/src/perl/selection-pastebin +++ b/src/perl/selection-pastebin @@ -48,6 +48,8 @@ sub upload_paste { $msg = "couldn't upload, '$cmd' failed"; } + unlink $tmpfile; + my $ov = $timers->{ov} = $self->overlay (-1, 0, length ($msg), 1, urxvt::OVERLAY_RSTYLE, 0); $ov->set (0, 0, $msg);