commit deb31cc5a1b686058273ec5e03d49564fee8e05b
parent c69cb6fe7293ab237206addbbc89e809e6f3d26e
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:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ui_ti.c b/ui_ti.c
@@ -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));
diff --git a/ui_txt.c b/ui_txt.c
@@ -145,6 +145,7 @@ printuri(Item *item, size_t i)
return;
switch (item->type) {
+ case 0:
case 'i':
break;
case 'h':