This commit is contained in:
Simon Gardling 2022-04-01 12:22:56 -04:00
parent 91221d2f9b
commit 777a523aad
2 changed files with 5 additions and 3 deletions

View File

@ -4,9 +4,9 @@
#[macro_use] #[macro_use]
extern crate static_assertions; extern crate static_assertions;
mod autocomplete_helper;
mod consts; mod consts;
mod function; mod function;
mod hashmap_helper;
mod math_app; mod math_app;
mod misc; mod misc;
mod parsing; mod parsing;

View File

@ -49,7 +49,9 @@ impl AutoComplete {
.lock_focus(true); .lock_focus(true);
if self.hint.is_none() { if self.hint.is_none() {
return (string, func_edit.id(te_id).ui(ui).has_focus()); let re = func_edit.id(te_id).ui(ui);
let return_string = (&new_string).to_string();
return (return_string, re.has_focus());
} }
if let Some(single_hint) = self.hint.get_single() { if let Some(single_hint) = self.hint.get_single() {
@ -137,6 +139,6 @@ impl AutoComplete {
} }
return (new_string, true); return (new_string, true);
} }
(string, false) (new_string, false)
} }
} }