Merge pull request #63 from paul-nameless/fix-copy-cmd

fix copy cmd
This commit is contained in:
Nameless 2020-06-03 09:30:02 +08:00 committed by GitHub
commit 6f7c321c1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,7 +149,9 @@ def truncate_to_len(s: str, target_len: int, encoding: str = "utf-8") -> str:
def copy_to_clipboard(text):
subprocess.run(config.COPY_CMD, universal_newlines=True, input=text)
subprocess.run(
config.COPY_CMD, universal_newlines=True, input=text, shell=True
)
class suspend: