about summary refs log tree commit diff
path: root/mpick.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-28 18:00:52 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-28 18:00:52 +0200
commit48a1779efb686a965148b3fb8228c99d9dbd1594 (patch)
treedf60c970a7755cbdcb37f6ce59b8482f7adb4008 /mpick.c
parent2526eca7306fd1de2ef7582c2e30db6bdf96a918 (diff)
downloadmblaze-48a1779efb686a965148b3fb8228c99d9dbd1594.tar.gz
mblaze-48a1779efb686a965148b3fb8228c99d9dbd1594.tar.xz
mblaze-48a1779efb686a965148b3fb8228c99d9dbd1594.zip
mpick: add mmsg(7) style ranges to msglist
Diffstat (limited to 'mpick.c')
-rw-r--r--mpick.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpick.c b/mpick.c
index 60eacbe..aeefff5 100644
--- a/mpick.c
+++ b/mpick.c
@@ -671,8 +671,8 @@ parse_msglist(const char *s)
 	default:
 		pos = (char *)s;
 
-		if ((d = strchr(s, '-')) && parse_num(&n) &&
-		    (pos = (char *)d + 1) && parse_num(&m)) {
+		if (((d = strchr(s, ':')) || (d = strchr(s, '-')))
+		    && parse_num(&n) && (pos = (char *)d + 1) && parse_num(&m)) {
 			/* index >= n */
 			e1 = mkexpr(EXPR_GE);
 			e1->a.prop = PROP_INDEX;