summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
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);