Fix uri display for invalid items - sacc - sacc(omys), simple console gopher cl… | |
git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
commit deb31cc5a1b686058273ec5e03d49564fee8e05b | |
parent c69cb6fe7293ab237206addbbc89e809e6f3d26e | |
Author: Quentin Rameau <[email protected]> | |
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(-) | |
--- | |
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': |