commit cffc2d4ac776d81b9e8a8083cee8064cd3f0d954
parent 81119985dca56161474faa5c9b70996d7a1aea83
Author: Quentin Rameau <quinq@fifth.space>
Date: Thu, 16 Aug 2018 14:50:04 +0200
Fix handling of standard upper-case types in dig()
Diffstat:
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/sacc.c b/sacc.c
@@ -692,14 +692,15 @@ dig(Item *entry, Item *item)
plumb(plumburi);
free(plumburi);
return 0;
- case 'g':
- case 'I':
default:
- if (t >= '0' && t <= 'Z')
+ if (t >= '0' && t <= 'Z') {
uistatus("Type %c (%s) not supported",
t, typedisplay(t));
- else
- plumbitem(item);
+ return 0;
+ }
+ case 'g':
+ case 'I':
+ plumbitem(item);
return 0;
}