mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 17:36:19 +04:00
format code
This commit is contained in:
parent
d10bce758f
commit
28029dcd07
@ -44,8 +44,12 @@ pub fn new(
|
||||
|
||||
fn prepare_markdowns(&mut self) {
|
||||
let Some((lsp_name, hover)) = self.hovers.get(self.active_index) else {
|
||||
log::info!("prepare_markdowns: failed \nindex:{}\ncount:{}", self.active_index, self.hovers.len());
|
||||
return
|
||||
log::info!(
|
||||
"prepare_markdowns: failed \nindex:{}\ncount:{}",
|
||||
self.active_index,
|
||||
self.hovers.len()
|
||||
);
|
||||
return;
|
||||
};
|
||||
self.header = Some(Markdown::new(
|
||||
format!(
|
||||
@ -136,7 +140,7 @@ fn required_size(&mut self, viewport: (u16, u16)) -> Option<(u16, u16)> {
|
||||
let max_text_width = viewport.0.saturating_sub(PADDING).clamp(10, 120);
|
||||
|
||||
let (Some(header), Some(contents)) = (self.header.as_ref(), self.contents.as_ref()) else {
|
||||
log::info!("markdown not ready");
|
||||
log::info!("markdown not ready");
|
||||
return None;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user