fixed a bug, the textfile is now deleted after upload.
authorelmex <elmex>
Tue, 17 Jan 2006 17:04:18 +0000 (17:04 +0000)
committerelmex <elmex>
Tue, 17 Jan 2006 17:04:18 +0000 (17:04 +0000)
src/perl/selection-pastebin

index bfdeb8ae0efa08ef875236d7d7bf89db4e3f6e0b..64f4a3193a39417dd12b8bc387cc9718d2efd1cb 100644 (file)
@@ -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);