From 35571490a3d4cbf6c4a22a43ba8f6c63377873b9 Mon Sep 17 00:00:00 2001 From: elmex Date: Tue, 17 Jan 2006 17:04:18 +0000 Subject: [PATCH] fixed a bug, the textfile is now deleted after upload. --- src/perl/selection-pastebin | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.34.1