From c0188ccaee589f623047d4fa547a038dc73763ff Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Mon, 16 May 2022 10:59:20 -0400 Subject: [PATCH] flip if statement --- src/function_manager.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/function_manager.rs b/src/function_manager.rs index f22ba7c..2c422e4 100644 --- a/src/function_manager.rs +++ b/src/function_manager.rs @@ -116,8 +116,8 @@ impl FunctionManager { if ui.ctx().animate_bool(*te_id, re.has_focus()) >= 1.0 { function.autocomplete.update_string(&new_string); - if !function.autocomplete.hint.is_none() { - if !is_mobile() && !function.autocomplete.hint.is_single() { + if function.autocomplete.hint.is_some() { + if !function.autocomplete.hint.is_single() && !is_mobile() { if ui.input().key_pressed(Key::ArrowDown) { movement = Movement::Down; } else if ui.input().key_pressed(Key::ArrowUp) {