This commit is contained in:
Simon Gardling
2023-03-07 16:55:44 -05:00
parent f390102110
commit fbcb611eea
3 changed files with 20 additions and 20 deletions

View File

@@ -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 => "",
}
}),
);