summary refs log tree commit diff
path: root/main.c
diff options
context:
space:
mode:
authorwrmr2024-11-06 00:14:44 -0500
committerwrmr2024-11-06 00:14:44 -0500
commitd2c280d441ddf974c90447d0a9252f5711802304 (patch)
tree666206d8bb44941a8b6fac83675716e37313d1b6 /main.c
parente05ad26ca39c3cce4d61206dec3035e348fc3011 (diff)
fix double redraw when passing url as cmd line arg
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 2ac6d21..3026e23 100644
--- a/main.c
+++ b/main.c
@@ -85,8 +85,9 @@ int main(int argc, const char **argv) {
 	nav_init(&ns);
 	if (argc == 2) {
 		if (nav_to(&ns, argv[1])) perr("navigation failure");
+	} else {
+		nav_redraw(&ns);
 	}
-	nav_redraw(&ns);
 	while (cmd_get(cmd_buf, sizeof cmd_buf)) {
 		cmd_trim(cmd_buf, sizeof cmd_buf);
 		if (cmd_do(cmd_buf, &ns)) {