refactor: also run triggers during completion
This commit is contained in:
parent
6fce29f876
commit
b2996cddbd
1 changed files with 4 additions and 0 deletions
|
|
@ -117,6 +117,10 @@ pub fn update_query(self: *Type, query: []const u8) void {
|
|||
editor.update_buf(root_) catch {};
|
||||
editor.clamp();
|
||||
editor.need_render();
|
||||
if (query.len > 0) {
|
||||
const last_char = query[query.len - 1];
|
||||
editor.run_triggers(last_char, .insert);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue