markdown: Make cx
the last parameter to Markdown::new_text
(#21497)
This PR is a follow-up to https://github.com/zed-industries/zed/pull/21487 to make sure that the `cx` is the last parameter to `Markdown::new_text` as well. Release Notes: - N/A
This commit is contained in:
parent
9f459ba573
commit
3019960f83
3 changed files with 3 additions and 3 deletions
|
@ -378,7 +378,7 @@ fn show_hover(
|
||||||
},
|
},
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
Markdown::new_text(text, markdown_style.clone(), None, cx, None)
|
Markdown::new_text(text, markdown_style.clone(), None, None, cx)
|
||||||
})
|
})
|
||||||
.ok();
|
.ok();
|
||||||
|
|
||||||
|
|
|
@ -97,8 +97,8 @@ impl Markdown {
|
||||||
source: String,
|
source: String,
|
||||||
style: MarkdownStyle,
|
style: MarkdownStyle,
|
||||||
language_registry: Option<Arc<LanguageRegistry>>,
|
language_registry: Option<Arc<LanguageRegistry>>,
|
||||||
cx: &ViewContext<Self>,
|
|
||||||
fallback_code_block_language: Option<String>,
|
fallback_code_block_language: Option<String>,
|
||||||
|
cx: &ViewContext<Self>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
let focus_handle = cx.focus_handle();
|
let focus_handle = cx.focus_handle();
|
||||||
let mut this = Self {
|
let mut this = Self {
|
||||||
|
|
|
@ -201,7 +201,7 @@ impl SshPrompt {
|
||||||
selection_background_color: cx.theme().players().local().selection,
|
selection_background_color: cx.theme().players().local().selection,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
let markdown = cx.new_view(|cx| Markdown::new_text(prompt, markdown_style, None, cx, None));
|
let markdown = cx.new_view(|cx| Markdown::new_text(prompt, markdown_style, None, None, cx));
|
||||||
self.prompt = Some((markdown, tx));
|
self.prompt = Some((markdown, tx));
|
||||||
self.status_message.take();
|
self.status_message.take();
|
||||||
cx.focus_view(&self.editor);
|
cx.focus_view(&self.editor);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue