mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 04:13:08 +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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue