Account for markdown styling in mentions offset calculation.

This also means that we can support smart punctuation.

Co-authored-by: Max <max@zed.dev>
This commit is contained in:
Piotr Osiewicz 2023-10-23 12:50:57 +02:00
parent 763b13e700
commit 812ff9a97d
7 changed files with 207 additions and 96 deletions

View file

@ -179,7 +179,7 @@ impl MessageEditor {
editor.clear_highlights::<Self>(cx);
editor.highlight_text::<Self>(
anchor_ranges,
theme::current(cx).chat_panel.mention_highlight,
theme::current(cx).chat_panel.rich_text.mention_highlight,
cx,
)
});