1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-11 07:44:20 +00:00

I don't like emojis anymore

This commit is contained in:
Tw93
2025-10-08 23:21:52 +08:00
parent 1657ff584b
commit 6c60c0f01b
8 changed files with 42 additions and 41 deletions

View File

@@ -50,8 +50,8 @@ paginated_multi_select() {
restore_terminal() {
show_cursor
if [[ -n "$original_stty" ]]; then
stty "$original_stty" 2>/dev/null || stty sane 2>/dev/null || stty echo icanon 2>/dev/null || true
if [[ -n "${original_stty-}" ]]; then
stty "${original_stty}" 2>/dev/null || stty sane 2>/dev/null || stty echo icanon 2>/dev/null || true
else
stty sane 2>/dev/null || stty echo icanon 2>/dev/null || true
fi