fix hint
This commit is contained in:
@@ -102,14 +102,14 @@ impl FunctionManager {
|
||||
let re = ui.add_sized(
|
||||
target_size * size_multiplier,
|
||||
egui::TextEdit::singleline(&mut new_string)
|
||||
// .hint_forward(true) // Make the hint appear after the last text in the textbox
|
||||
.hint_forward(true) // Make the hint appear after the last text in the textbox
|
||||
.lock_focus(true)
|
||||
.id(te_id) // Set widget's id to `te_id`
|
||||
.hint_text({
|
||||
// If there's a single hint, go ahead and apply the hint here, if not, set the hint to an empty string
|
||||
match function.autocomplete.hint.single() {
|
||||
Some(single_hint) => function.raw_func_str.clone() + single_hint,
|
||||
None => String::new(),
|
||||
Some(single_hint) => single_hint,
|
||||
None => "",
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user