clipboard_paste: Fix lines starting with "-"

Previously, trying to paste "--something" would result in an error from
commandline.
This commit is contained in:
Fabian Homborg 2016-07-03 12:25:56 +02:00
parent 89c96c2114
commit 9b4938e2c2

View file

@ -1,7 +1,7 @@
function fish_clipboard_paste function fish_clipboard_paste
if type -q pbpaste if type -q pbpaste
commandline -i (pbpaste) commandline -i -- (pbpaste)
else if type -q xsel else if type -q xsel
commandline -i (xsel --clipboard) commandline -i -- (xsel --clipboard)
end end
end end