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]
extern crate static_assertions;
mod autocomplete_helper;
mod consts;
mod function;
mod hashmap_helper;
mod math_app;
mod misc;
mod parsing;

View File

@ -49,7 +49,9 @@ impl AutoComplete {
.lock_focus(true);
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() {
@ -137,6 +139,6 @@ impl AutoComplete {
}
return (new_string, true);
}
(string, false)
(new_string, false)
}
}