mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
parent
05a640b027
commit
90f7d4b081
1 changed files with 2 additions and 0 deletions
|
@ -5,7 +5,9 @@ function fish_clipboard_paste
|
|||
# Only run `commandline` if `xsel` succeeded.
|
||||
# That way any xsel error is printed (to show e.g. a non-functioning X connection),
|
||||
# but we don't print the redundant (and overly verbose for this) commandline error.
|
||||
# Also require non-empty contents to not clear the buffer.
|
||||
if set -l data (xsel --clipboard)
|
||||
and test -n "$data"
|
||||
commandline -i -- $data
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue