summaryrefslogtreecommitdiff
path: root/src/search.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.zig')
-rw-r--r--src/search.zig9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/search.zig b/src/search.zig
index 321f948..6c7dc6a 100644
--- a/src/search.zig
+++ b/src/search.zig
@@ -37,7 +37,14 @@ pub fn search(editor: *Editor, buffer: *Buffer) !void {
37 data.allocator.free(saved_hl.data); 37 data.allocator.free(saved_hl.data);
38 }; 38 };
39 39
40 if (try editor.promptEx(*CallbackData, Error, "Search", searchCallback, &data)) |response| { 40 if (try editor.promptEx(
41 *CallbackData,
42 Error,
43 editor.allocator,
44 "Search",
45 searchCallback,
46 &data,
47 )) |response| {
41 editor.allocator.free(response); 48 editor.allocator.free(response);
42 } else { 49 } else {
43 // Cancelled 50 // Cancelled