refactor: run triggers only on primary cursel
This commit is contained in:
parent
4f39bbbd41
commit
b5d137666f
2 changed files with 5 additions and 4 deletions
|
|
@ -122,7 +122,7 @@ pub fn update_query(self: *Type, query: []const u8) void {
|
|||
editor.need_render();
|
||||
if (query.len > 0) {
|
||||
const last_char = query[query.len - 1];
|
||||
editor.run_triggers(last_char, .insert);
|
||||
editor.run_triggers(primary, last_char, .insert);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue