diff options
-rw-r--r-- | main.c | 3 |
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)) { |