feat(tasks): mark task buffers as clean when task exits

This commit is contained in:
CJ van den Berg 2025-01-26 20:18:31 +01:00
parent a28f1db4c7
commit 304a62dfdc
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 18 additions and 2 deletions

View file

@ -759,8 +759,12 @@ const cmds = struct {
var buffer_ref: usize = 0;
if (!try ctx.args.match(.{tp.extract(&buffer_ref)}))
return error.InvalidShellOutputCompleteArgument;
// TODO
_ = self;
const buffer = self.buffer_manager.buffer_from_ref(buffer_ref) orelse return;
if (self.get_active_editor()) |editor| if (editor.buffer) |eb| if (eb == buffer) {
editor.forced_mark_clean(.{}) catch {};
return;
};
buffer.mark_clean();
}
pub const shell_execute_stream_output_complete_meta = .{ .arguments = &.{ .integer, .string } };