acp: Cancel editing when focus is lost and message was not changed (#36822)
Release Notes: - N/A
This commit is contained in:
parent
54c7d9dc5f
commit
d8bffd7ef2
3 changed files with 24 additions and 7 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue