From 7265468e8d701fbebfc5fd0d5622c7ce2e5d81bb Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Thu, 3 Apr 2025 09:22:02 +0200 Subject: [PATCH] kvui: fix [u] and [/u] appearing in copied hints (#4794) --- kvui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvui.py b/kvui.py index 36162072..1c2bd745 100644 --- a/kvui.py +++ b/kvui.py @@ -296,7 +296,7 @@ class SelectableLabel(RecycleDataViewBehavior, TooltipLabel): else: # Not a fan of the following few lines, but they work. temp = MarkupLabel(text=self.text).markup - text = "".join(part for part in temp if not part.startswith(("[color", "[/color]", "[ref=", "[/ref]"))) + text = "".join(part for part in temp if not part.startswith("[")) cmdinput = App.get_running_app().textinput if not cmdinput.text: input_text = get_input_text_from_response(text, App.get_running_app().last_autofillable_command)