Skip to content

Commit

Permalink
fix: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Feel-ix-343 committed Mar 3, 2024
1 parent d0d937a commit d9565f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/handlers/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ fn request_completion(
})
.collect();


anyhow::Ok((is_incomplete, items))
}
})
Expand Down Expand Up @@ -322,7 +321,8 @@ fn show_completion(
return;
}

let completion_area = ui.set_completion(editor, savepoint, items, trigger.pos, size, is_incomplete);
let completion_area =
ui.set_completion(editor, savepoint, items, trigger.pos, size, is_incomplete);
let signature_help_area = compositor
.find_id::<Popup<SignatureHelp>>(SignatureHelp::ID)
.map(|signature_help| signature_help.area(size, editor));
Expand Down
2 changes: 1 addition & 1 deletion helix-term/src/ui/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub struct Completion {
trigger_offset: usize,
filter: String,
resolve_handler: tokio::sync::mpsc::Sender<CompletionItem>,
is_incomplete: bool
is_incomplete: bool,
}

impl Completion {
Expand Down
3 changes: 2 additions & 1 deletion helix-term/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,8 @@ impl EditorView {
size: Rect,
is_incomplete: bool,
) -> Option<Rect> {
let mut completion = Completion::new(editor, savepoint, items, trigger_offset, is_incomplete);
let mut completion =
Completion::new(editor, savepoint, items, trigger_offset, is_incomplete);

if completion.is_empty() {
// skip if we got no completion results
Expand Down

0 comments on commit d9565f2

Please sign in to comment.