Skip to content

Commit

Permalink
only remove when intersecting
Browse files Browse the repository at this point in the history
  • Loading branch information
kirawi committed Feb 10, 2023
1 parent 4ca0c93 commit e5becba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4086,7 +4086,8 @@ pub fn completion(cx: &mut Context) {
trigger_offset,
size,
)
.and_then(|area| Some(area.intersects(signature_help_area?)))
.zip(signature_help_area)
.filter(|(a, b)| a.intersects(*b))
.is_some()
{
compositor.remove(SignatureHelp::ID);
Expand Down
2 changes: 1 addition & 1 deletion helix-term/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ impl Component for EditorView {
// assume close_fn
self.clear_completion(cx.editor);

// In case the popup was deleted beacuse of an intersection w/ the auto-complete menu.
// In case the popup was deleted because of an intersection w/ the auto-complete menu.
commands::signature_help_impl(
&mut cx,
commands::SignatureHelpInvoked::Automatic,
Expand Down

0 comments on commit e5becba

Please sign in to comment.