From 2a17c6160c4a109220f2f918454854d52d696234 Mon Sep 17 00:00:00 2001 From: Ayush Agarwal Date: Wed, 2 Mar 2022 07:14:12 +0530 Subject: 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 --- tessen | 4 ---- 1 file changed, 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 } -- cgit v1.2.3