Skip to content

Commit b6834b2

Browse files
committed
Fix UI bug discussed in #10
1 parent afe7778 commit b6834b2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/tui.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,8 @@ fn compact_knowledge_desc(msg: &str) -> String {
724724
return String::new();
725725
};
726726
// Try to extract the value name — first word or primitive name
727-
let val_name = if let Some(rest) = msg.strip_prefix("Output of ") {
727+
let val_name = if let Some(idx) = msg.find("utput of ") {
728+
let rest = &msg[idx + "utput of ".len()..];
728729
rest.split('(').next().unwrap_or("?").to_string()
729730
} else {
730731
msg.split_whitespace().next().unwrap_or("?").to_string()

0 commit comments

Comments
 (0)