tFix uri display for invalid items - sacc - sacc(omys), simple console gopher client (mirror) (HTM) git clone https://git.parazyd.org/sacc (DIR) Log (DIR) Files (DIR) Refs (DIR) LICENSE --- (DIR) commit deb31cc5a1b686058273ec5e03d49564fee8e05b (DIR) parent c69cb6fe7293ab237206addbbc89e809e6f3d26e (HTM) Author: Quentin Rameau <quinq@fifth.space> Date: Sun, 10 Sep 2017 13:50:57 +0200 Fix uri display for invalid items Thanks to trqx for spotting this! Diffstat: M ui_ti.c | 2 +- M ui_txt.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) --- (DIR) diff --git a/ui_ti.c b/ui_ti.c t@@ -175,7 +175,7 @@ displayuri(Item *item) char *fmt; int n; - if (item->type == 'i') + if (item->type == 0 || item->type == 'i') return; putp(tparm(save_cursor)); (DIR) diff --git a/ui_txt.c b/ui_txt.c t@@ -145,6 +145,7 @@ printuri(Item *item, size_t i) return; switch (item->type) { + case 0: case 'i': break; case 'h':