~leon_plickat/nfm

nfm: KeyOperation/misc: Update to new alloc convention v1 PROPOSED

Hugo Machet: 1
 KeyOperation/misc: Update to new alloc convention

 1 files changed, 5 insertions(+), 5 deletions(-)
#915364 alpine.yml failed
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~leon_plickat/nfm/patches/37904/mbox | git am -3
Learn more about email & git

[PATCH nfm] KeyOperation/misc: Update to new alloc convention Export this patch

---
 src/key-operations/misc.zig | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/key-operations/misc.zig b/src/key-operations/misc.zig
index b132edc92219..ad89c6269f47 100644
--- a/src/key-operations/misc.zig
+++ b/src/key-operations/misc.zig
@@ -66,7 +66,7 @@ pub fn runBackground(op: *const KeyOperation) !void {

fn run(op: *const KeyOperation, foreground: bool) !void {
    const cmd = (try getFormattedBuffer(op)) orelse return;
    defer context.gpa.allocator().free(cmd);
    defer context.alloc.free(cmd);
    if (foreground) {
        try context.run(cmd, "/bin/sh or subprocess");
    } else {
@@ -97,25 +97,25 @@ pub fn setViewFiles(_: *const KeyOperation) !void {

pub fn search(op: *const KeyOperation) !void {
    const str = (try getFormattedBuffer(op)) orelse return;
    defer context.gpa.allocator().free(str);
    defer context.alloc.free(str);
    try context.search(str);
}

pub fn select(op: *const KeyOperation) !void {
    const str = (try getFormattedBuffer(op)) orelse return;
    defer context.gpa.allocator().free(str);
    defer context.alloc.free(str);
    try context.select(str);
}

pub fn keep(op: *const KeyOperation) !void {
    const str = (try getFormattedBuffer(op)) orelse return;
    defer context.gpa.allocator().free(str);
    defer context.alloc.free(str);
    try context.keep(str);
}

pub fn discard(op: *const KeyOperation) !void {
    const str = (try getFormattedBuffer(op)) orelse return;
    defer context.gpa.allocator().free(str);
    defer context.alloc.free(str);
    try context.discard(str);
}

-- 
2.39.0
nfm/patches/alpine.yml: FAILED in 58s

[KeyOperation/misc: Update to new alloc convention][0] from [Hugo Machet][1]

[0]: https://lists.sr.ht/~leon_plickat/nfm/patches/37904
[1]: mailto:mail@hmachet.com

✗ #915364 FAILED nfm/patches/alpine.yml https://builds.sr.ht/~leon_plickat/job/915364