fix: initialize input namespace before restoring session

This commit is contained in:
CJ van den Berg 2024-12-05 20:23:44 +01:00
parent 28b256971a
commit bc3ddba228
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -141,12 +141,12 @@ fn init(allocator: Allocator) !*Self {
self.set_terminal_style();
try self.rdr.render();
try self.save_config();
try self.init_input_namespace();
if (tp.env.get().is("restore-session")) {
command.executeName("restore_session", .{}) catch |e| self.logger.err("restore_session", e);
self.logger.print("session restored", .{});
}
need_render();
try self.init_input_namespace();
return self;
}