From bd08ef9837dc947eb9b2f635b6fed57bd5d36a2b Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 30 Jun 2025 09:10:15 +0200 Subject: [PATCH] Update core.func --- misc/core.func | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/misc/core.func b/misc/core.func index dedc2636..fbd52dcd 100644 --- a/misc/core.func +++ b/misc/core.func @@ -447,9 +447,12 @@ spinner() { } stop_spinner() { - [[ -n "$SPINNER_PID" ]] && kill "$SPINNER_PID" 2>/dev/null && wait "$SPINNER_PID" 2>/dev/null || true - printf "\e[?25h" - SPINNER_PID="" + if [[ -n "$SPINNER_PID" ]]; then + kill "$SPINNER_PID" 2>/dev/null + wait "$SPINNER_PID" 2>/dev/null || true + SPINNER_PID="" + fi + printf "\r\033[K\e[?25h" # clear line + show cursor } msg_info() {