zygo

ncurses gopher client
Log | Files | Refs

commit 76c92f8e9769909af7ba229a420fe36db5a0e366
parent 9a826177f4f09c2c093262219a5319e572a29e7c
Author: hhvn <dev@hhvn.uk>
Date:   Sat, 16 Jul 2022 12:28:51 +0100

Don't call go() before initializing ncurses

Diffstat:
Mzygo.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/zygo.c b/zygo.c @@ -1230,7 +1230,6 @@ main(int argc, char *argv[]) { } } else { target = uritoelem(argv[argc-1]); - go(target, 1, 0); } } @@ -1270,6 +1269,9 @@ main(int argc, char *argv[]) { init_pair(scheme[i].pair, scheme[i].fg, -1); } + if (target) + go(target, 1, 0); + run(); endwin();