mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 02:27:28 +08: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,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 New Issue
Block a user