diff --git a/src/nodelist.c b/src/nodelist.c index c6d743a..003b31a 100644 --- a/src/nodelist.c +++ b/src/nodelist.c @@ -112,6 +112,10 @@ void nl_browser() { sqlite3_finalize(res); sqlite3_close(db); + if (entry_count == 0) { + return; + } + while (1) { if (redraw) { s_printf("\e[2J\e[1;1H");