From feff0bb89d30f2d96c91e9d19bdd9957883a8b5f Mon Sep 17 00:00:00 2001
From: Roman Inflianskas <infroma@gmail.com>
Date: Mon, 9 Jun 2014 13:44:46 +0400
Subject: [PATCH] [dpaste] Fixed file pasting with option -t

---
 plugins/dpaste/dpaste.fish | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/dpaste/dpaste.fish b/plugins/dpaste/dpaste.fish
index 687ee59..c476769 100644
--- a/plugins/dpaste/dpaste.fish
+++ b/plugins/dpaste/dpaste.fish
@@ -29,7 +29,7 @@ function __dpaste_parse_expires
   if [ -z (echo $expires | sed -r "s/$__dpaste_expires_choises//") ]
     set __dpaste_send_url "$__dpaste_send_url&expires=$expires"
   end
-  echo $argv | sed -r "s/$expires_spec//"
+  echo $argv | sed -r "s/$expires_spec//" | xargs
 end
 
 function __dpaste_help
-- 
GitLab