diff options
| author | WormHeamer | 2025-12-29 06:16:01 -0500 |
|---|---|---|
| committer | WormHeamer | 2025-12-29 06:16:01 -0500 |
| commit | 91e75c8b10292a2799424baf417bdebe65a403ff (patch) | |
| tree | 181272d65ce114892882b205e96ca68db79dc769 /main.c | |
| parent | 9af79eb5fcf3dd8e4676277b47d9b17cfc014e85 (diff) | |
add str.h
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |
