aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2013-07-17 14:00:25 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2013-07-17 14:00:25 +0200
commit39dff3f68575d4923038c075033906de162a3600 (patch)
tree18a554c12be2ec781290eea918ab68840a1588b3
parent99b39e5d0dd0f595000bdff35694f96905210ce5 (diff)
downloadcalcurse-39dff3f68575d4923038c075033906de162a3600.tar.gz
calcurse-39dff3f68575d4923038c075033906de162a3600.zip
Add a short format specifier for "%(remaining)"
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-rw-r--r--src/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index 3540be8..a1d410a 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -1158,6 +1158,8 @@ static enum format_specifier parse_fs(const char **s, char *extformat)
return FS_NOTEFILE;
case 'p':
return FS_PRIORITY;
+ case 'r':
+ return FS_REMAINING;
case '(':
/* Long format specifier. */
for ((*s)++, i = 0; **s != ':' && **s != ')'; (*s)++, i++) {