From 2c3f61851f8ba1dc545322598cf878fbcc8e52e2 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Thu, 12 Nov 2026 13:31:33 -0800 Subject: [PATCH] MCP: a readable library's id stays only after a delimiter A readable library's id was kept whole after any character outside a short list, so in `/a+/project/libs/Kit.gpl` the id `/project/libs/Kit.gpl` was kept and the hidden `/libs/Kit.gpl` inside it showed in the reply. The same happened after `@`, `=`, `%` and `!`. The id now stays only at the start of the text, after a space, a quote, `,`, `;` or an opening bracket, or in a local `file:` URL. Written with its `loaded/`, it also stays after `=`. --- crates/ui-egui/src/control.rs | 15 +++++++++++---- crates/ui-egui/src/control/tests.rs | 14 ++++++++++++++ 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/crates/ui-egui/src/control.rs b/crates/ui-egui/src/control.rs index c1e6b7d0db..c53cb87f44 100644 --- a/crates/ui-egui/src/control.rs +++ b/crates/ui-egui/src/control.rs @@ -832,8 +832,11 @@ fn begins_known_id(text: &str, at: usize, end: usize, r: &Rewrite) -> Option