acp: Cancel editing when focus is lost and message was not changed (#36822)

Release Notes:

- N/A
This commit is contained in:
Bennet Bo Fenner 2025-08-24 13:05:39 +02:00 committed by GitHub
parent 54c7d9dc5f
commit d8bffd7ef2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 7 deletions

View file

@ -509,7 +509,7 @@ impl ContentBlock {
"`Image`".into()
}
fn to_markdown<'a>(&'a self, cx: &'a App) -> &'a str {
pub fn to_markdown<'a>(&'a self, cx: &'a App) -> &'a str {
match self {
ContentBlock::Empty => "",
ContentBlock::Markdown { markdown } => markdown.read(cx).source(),