diff options
author | Blaž Hrastnik | 2021-10-10 03:32:06 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-10-10 03:32:06 +0000 |
commit | 633b981db22bb30c601b838eaaeb814a64156125 (patch) | |
tree | 26ea79888179adc76a82f16c5cd0efc14ccb3c35 /helix-term | |
parent | c7f3a971c0e42d1ecb8b91f075b2300040b656fa (diff) |
Make idle-timeout configurable
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/commands.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 3798c99a..f005e376 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -4130,7 +4130,7 @@ pub fn completion(cx: &mut Context) { }; if items.is_empty() { - editor.set_error("No completion available".to_string()); + // editor.set_error("No completion available".to_string()); return; } let size = compositor.size(); @@ -4138,7 +4138,14 @@ pub fn completion(cx: &mut Context) { .find(std::any::type_name::<ui::EditorView>()) .unwrap(); if let Some(ui) = ui.as_any_mut().downcast_mut::<ui::EditorView>() { - ui.set_completion(editor, items, offset_encoding, start_offset, trigger_offset, size); + ui.set_completion( + editor, + items, + offset_encoding, + start_offset, + trigger_offset, + size, + ); }; }, ); |