fixes
This commit is contained in:
parent
91221d2f9b
commit
777a523aad
@ -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;
|
||||||
|
|||||||
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user