From 9737bf64849bb490198a959fc98565041e290ac2 Mon Sep 17 00:00:00 2001 From: Maximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com> Date: Thu, 4 Jul 2024 18:04:45 +0200 Subject: [PATCH] label: do not error when using cmd[] for a static label cmd (#396) --- src/renderer/widgets/IWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/widgets/IWidget.cpp b/src/renderer/widgets/IWidget.cpp index 08aa1c2..50d1e05 100644 --- a/src/renderer/widgets/IWidget.cpp +++ b/src/renderer/widgets/IWidget.cpp @@ -156,7 +156,7 @@ IWidget::SFormatResult IWidget::formatString(std::string in) { if (in.starts_with("cmd[") && in.contains("]")) { // this is a command - CVarList vars(in.substr(4, in.find_first_of(']') - 4)); + CVarList vars(in.substr(4, in.find_first_of(']') - 4), 0, ',', true); for (const auto& v : vars) { if (v.starts_with("update:")) {