summaryrefslogtreecommitdiff
path: root/tessen
diff options
context:
space:
mode:
authorAyush Agarwal <ayushnix@fastmail.com>2022-03-02 07:14:12 +0530
committerAyush Agarwal <ayushnix@fastmail.com>2022-03-02 07:14:12 +0530
commit2a17c6160c4a109220f2f918454854d52d696234 (patch)
tree024491c15a48e4f361541a95fdb7e9937c0ad405 /tessen
parent87877a06fc7965b4d9c4cbd6bc53e567cedf7192 (diff)
fix: don't clear the clipboard in trap function
there's no need to aggressively clear the clipboard in the trap function and there's also no need to call `_clear` in `_die` because `exit 1` should call `_clear` because of the trap
Diffstat (limited to 'tessen')
-rwxr-xr-xtessen4
1 files changed, 0 insertions, 4 deletions
diff --git a/tessen b/tessen
index 426dec5..5caf939 100755
--- a/tessen
+++ b/tessen
@@ -634,9 +634,6 @@ is_installed() {
}
_clear() {
- if [[ $tsn_action =~ ^(copy|both|default)$ ]]; then
- wl-copy --clear
- fi
unset -v tsn_passfile tsn_passdata tsn_username tsn_password tsn_url
unset -v tsn_autotype chosen_key
}
@@ -645,7 +642,6 @@ _die() {
if [[ -n $1 ]]; then
printf "%s\n" "$1" >&2
fi
- _clear
exit 1
}