feat(tasks): mark task buffers as clean when task exits
This commit is contained in:
parent
a28f1db4c7
commit
304a62dfdc
3 changed files with 18 additions and 2 deletions
|
@ -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 } };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue