fix(windows): unbreak recent files fuzzy find on windows
This commit is contained in:
parent
049fc3874a
commit
1b6d4b350e
1 changed files with 4 additions and 7 deletions
|
@ -155,15 +155,12 @@ pub fn query_recent_files(self: *Self, from: tp.pid_ref, max: usize, query: []co
|
||||||
return self.simple_query_recent_files(from, max, query);
|
return self.simple_query_recent_files(from, max, query);
|
||||||
defer from.send(.{ "PRJ", "recent_done", query }) catch {};
|
defer from.send(.{ "PRJ", "recent_done", query }) catch {};
|
||||||
|
|
||||||
var searcher = fuzzig.Ascii.init(
|
var searcher = try fuzzig.Ascii.init(
|
||||||
self.a,
|
self.a,
|
||||||
std.fs.max_path_bytes, // haystack max size
|
4096, // haystack max size
|
||||||
std.fs.max_path_bytes, // needle max size
|
4096, // needle max size
|
||||||
.{ .case_sensitive = false },
|
.{ .case_sensitive = false },
|
||||||
) catch |e| switch (e) {
|
);
|
||||||
error.OutOfMemory => @panic("OOM in fussiz.Ascii.init"),
|
|
||||||
else => |e_| return e_,
|
|
||||||
};
|
|
||||||
defer searcher.deinit();
|
defer searcher.deinit();
|
||||||
|
|
||||||
const Match = struct {
|
const Match = struct {
|
||||||
|
|
Loading…
Add table
Reference in a new issue