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)