about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-05-25 13:38:47 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-05-25 13:38:47 +0200
commit1cfab017a44b3059dc811eebd1d92edf794defb4 (patch)
tree67d2c02658b9a0c505815a04c3b3986b0d19859b
parentde8975c008aa4016e7bc1b817a62d90f9f45cefa (diff)
downloadprofani-tty-1cfab017a44b3059dc811eebd1d92edf794defb4.tar.gz
Handle listing ignored bookmarks when none are ignored
-rw-r--r--src/ui/console.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index 3129c773..c7cecf61 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -2687,6 +2687,12 @@ _show_roster_contacts(GSList *list, gboolean show_groups)
 void
 cons_show_bookmarks_ignore(gchar **list, gsize len)
 {
+    if (len == 0) {
+        cons_show("");
+        cons_show("No ignored bookmarks");
+        return;
+    }
+
     int i;
     ProfWin *console = wins_get_console();