Fix quotes being copied when clearing Termux clipboard

Former-commit-id: 028b6bdcf891aa017f1d21b6b083591322695b69
Former-commit-id: 9ef4a8e58fc44068efdfab43b6f33e4de76d8efe
This commit is contained in:
2023-10-26 17:48:12 -04:00
parent 787a2bbfc4
commit f80fd2b6e2
+1 -1
View File
@@ -33,7 +33,7 @@ elif argv[2] == 'mac':
elif argv[2] == 'termux':
hash_paste.update(run('termux-clipboard-get', stdout=PIPE).stdout.strip())
if argv[1] == hash_paste.hexdigest():
run(("termux-clipboard-set", "''"))
run(("termux-clipboard-set", ''))
elif argv[2] == 'x11':
hash_paste.update(run(('xclip', '-o', '-sel', 'c'), stdout=PIPE).stdout.strip())