refactor: add editor.have_matches function
This commit is contained in:
parent
f909e1437e
commit
7ad00a6f76
1 changed files with 4 additions and 0 deletions
|
|
@ -1912,6 +1912,10 @@ pub const Editor = struct {
|
||||||
self.matches.clearAndFree(self.allocator);
|
self.matches.clearAndFree(self.allocator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn have_matches(self: *Self) bool {
|
||||||
|
return self.matches.items.len > 0;
|
||||||
|
}
|
||||||
|
|
||||||
pub fn clear_matches(self: *Self) void {
|
pub fn clear_matches(self: *Self) void {
|
||||||
self.cancel_all_matches();
|
self.cancel_all_matches();
|
||||||
self.match_token += 1;
|
self.match_token += 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue