From 9e6d38425ab936448e5dd5c6aecbee3c94bbc97b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 26 Apr 2022 19:47:39 -0700 Subject: [PATCH] update TODO --- TODO.md | 4 ++++ src/Window.zig | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 50a5ba5a1..84d69d76e 100644 --- a/TODO.md +++ b/TODO.md @@ -3,3 +3,7 @@ Performance: * libuv allocates on every read, we should use a read buffer pool * update cells for drawing should just happen once per frame * update cells should only update the changed cells + +Correctness: + +* `exit` in the shell should close the window diff --git a/src/Window.zig b/src/Window.zig index 7050ad1a3..aaf5844c1 100644 --- a/src/Window.zig +++ b/src/Window.zig @@ -129,7 +129,7 @@ pub fn create(alloc: Allocator, loop: libuv.Loop) !*Window { return error.CommandNotFound; defer alloc.free(path); - var env = std.BufMap.init(alloc); + var env = try std.process.getEnvMap(alloc); defer env.deinit(); try env.put("TERM", "dumb");