From 9b4938e2c28429ad88c8153a08b7292a820ded96 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 3 Jul 2016 12:25:56 +0200 Subject: [PATCH] clipboard_paste: Fix lines starting with "-" Previously, trying to paste "--something" would result in an error from commandline. --- share/functions/fish_clipboard_paste.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/functions/fish_clipboard_paste.fish b/share/functions/fish_clipboard_paste.fish index bec43c88e..c6a4a3e45 100644 --- a/share/functions/fish_clipboard_paste.fish +++ b/share/functions/fish_clipboard_paste.fish @@ -1,7 +1,7 @@ function fish_clipboard_paste if type -q pbpaste - commandline -i (pbpaste) + commandline -i -- (pbpaste) else if type -q xsel - commandline -i (xsel --clipboard) + commandline -i -- (xsel --clipboard) end end