mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
clipboard_paste: Fix lines starting with "-"
Previously, trying to paste "--something" would result in an error from commandline.
This commit is contained in:
parent
89c96c2114
commit
9b4938e2c2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue