feat: add ignore_filter_stderr config option

This commit is contained in:
CJ van den Berg 2025-12-08 21:37:50 +01:00
parent e7118763a1
commit 7b7c84628c
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 3 additions and 1 deletions

View file

@ -6154,8 +6154,9 @@ pub const Editor = struct {
}
fn filter_error(self: *Self, bytes: []const u8) !void {
defer self.filter_deinit();
self.logger.print("filter: ERR: {s}", .{bytes});
if (tui.config().ignore_filter_stderr) return;
defer self.filter_deinit();
if (self.need_save_after_filter) |info| {
try self.save();
if (info.then) |then|