From 03d28092955e87a379298cec8091ed4f9f8d77f9 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 14 Apr 2024 21:14:26 +0200 Subject: [PATCH] fix regression that caused inlined ifs to be displayed as choices --- src/chat.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chat.rs b/src/chat.rs index 7b0915f..102d17e 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -269,6 +269,9 @@ impl ChatDB { else if non_choice_tokens.contains(&key.as_str()) { // skip over the other non-choice tokens } + else if key.as_str().starts_with(TOKEN_IF_INLINE) { + // skip over inlined if-statements + } else { result.choice_text = Some(key.to_string()); }