From 91e75c8b10292a2799424baf417bdebe65a403ff Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Mon, 29 Dec 2025 06:16:01 -0500 Subject: add str.h --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 1c3c653..15188f4 100644 --- a/main.c +++ b/main.c @@ -152,7 +152,7 @@ int shell_replace(TxtLoc start, TxtLoc end, const char *cmd) { DYNARR(char) rds = { 0 }; u32 wr_i = 0; cur = txt_delete_range(start, end); - while ((pfds[0].fd >= 0 || pfds[1].fd >= 0) && poll(pfds, 2, 100) >= 0) { + while ((pfds[0].fd >= 0 || pfds[1].fd >= 0) && poll(pfds, 2, 200) >= 0) { const u32 chunksz = 8L << 10; if (pfds[0].revents & POLLOUT) { u32 wr_n = wrs.n - wr_i; @@ -379,8 +379,8 @@ int main(int argc, const char **argv) { vui_init(); vui_curs_vis(1); vui_redraw_fn(draw); - //const char *path = "test.txt"; - const char *path = "/usr/share/dict/words"; + const char *path = "test.txt"; + //const char *path = "/usr/share/dict/words"; if (argc > 1) path = argv[1]; if (txt_load(&txt, path)) err(1, "couldn't open file"); cur = txt_end(&txt); -- cgit v1.2.3