return if no nodes in nodelist

This commit is contained in:
Andrew Pamment 2018-02-06 11:56:33 +10:00
parent 3b4ce8312a
commit 5c629429c4

View File

@ -112,6 +112,10 @@ void nl_browser() {
sqlite3_finalize(res); sqlite3_finalize(res);
sqlite3_close(db); sqlite3_close(db);
if (entry_count == 0) {
return;
}
while (1) { while (1) {
if (redraw) { if (redraw) {
s_printf("\e[2J\e[1;1H"); s_printf("\e[2J\e[1;1H");