tAdd support for mirror type '+' - sacc - sacc (saccomys): simple gopher client. (DIR) Log (DIR) Files (DIR) Refs (DIR) LICENSE --- (DIR) commit cea0005063fa81a6d1b22d8c89dfd50f1c2f2270 (DIR) parent 54e52d947c665dd719db5e221c184753e192549e (HTM) Author: Quentin Rameau <quinq@fifth.space> Date: Fri, 14 Jul 2017 23:05:35 +0200 Add support for mirror type '+' Diffstat: sacc.c | 4 +++- ui_ti.c | 3 ++- ui_txt.c | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) --- (DIR) diff --git a/sacc.c b/sacc.c t@@ -140,7 +140,7 @@ typedisplay(char t) case '9': return "Binf+"; case '+': - return "Mirr|"; + return "Mirr+"; case 'T': return "IBMt|"; case 'g': t@@ -453,6 +453,7 @@ dig(Item *entry, Item *item) return 0; break; case '1': + case '+': case '7': if (!fetchitem(item) || !(item->dat = molddiritem(item->raw))) { fputs("Couldn't parse dir item\n", stderr); t@@ -491,6 +492,7 @@ delve(Item *hole) displaytextitem(hole); break; case '1': + case '+': if (dig(entry, hole) && hole->dat) entry = hole; break; (DIR) diff --git a/ui_ti.c b/ui_ti.c t@@ -139,7 +139,8 @@ display(Item *entry) Dir *dir; size_t i, curln, lastln, nitems, printoff; - if (!entry || !(entry->type == '1' || entry->type == '7')) + if (!entry || + !(entry->type == '1' || entry->type == '+' || entry->type == '7')) return; putp(tparm(clear_screen)); (DIR) diff --git a/ui_txt.c b/ui_txt.c t@@ -92,7 +92,8 @@ display(Item *entry) size_t i, lines, nitems; int nd; - if (!entry || !(entry->type == '1' || entry->type == '7') || + if (!entry || + !(entry->type == '1' || entry->type == '+' || entry->type == '7') || !(dir = entry->dat)) return;