fix autocomplete pop ups

This commit is contained in:
Simon Gardling
2022-04-03 14:24:59 -04:00
parent 777a523aad
commit 683a471dbb
3 changed files with 5 additions and 5 deletions

View File

@@ -91,9 +91,9 @@ impl FunctionEntry {
pub fn get_func_raw(&self) -> String { self.raw_func_str.to_string() }
pub fn auto_complete(
&mut self, ui: &mut egui::Ui, string: &mut String,
&mut self, ui: &mut egui::Ui, string: &mut String, i: i32,
) -> (bool, bool, Option<String>) {
let (output_string, in_focus) = self.autocomplete.ui(ui, string.to_string());
let (output_string, in_focus) = self.autocomplete.ui(ui, string.to_string(), i);
let changed = output_string != *string;
if changed {