fix: don't insert when in terminal mode

This commit is contained in:
CJ van den Berg 2026-02-24 23:23:12 +01:00
parent cc6c84be15
commit 43b46d179f
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -110,7 +110,7 @@ pub fn create_with_args(allocator: Allocator, parent: Plane, ctx: command.Contex
.env = env,
.write_buf = undefined, // managed via self.vt's pty_writer pointer
.pty_pid = null,
.input_mode = try keybind.mode("terminal", allocator, .{}),
.input_mode = try keybind.mode("terminal", allocator, .{ .insert_command = "do_nothing" }),
};
try self.vt.spawn();