mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 122e0f4426831ceb222ab2c3f7919e1721b30ceb
parent f28e1c01581312f4f71abec0ad3c85d480922936
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Thu, 28 Jul 2016 23:10:32 +0200

seq: blaze822_seq_next: fix mseq -n .

Diffstat:
seq.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/seq.c b/seq.c @@ -263,7 +263,8 @@ blaze822_seq_next(char *map, char *range, struct blaze822_seq_iter *iter) if (strcmp(range, ".") == 0) { if (!iter->lines) { iter->lines = 1; - iter->start = iter->stop = 0; + find_cur(map, iter); + iter->start = iter->stop = iter->line = iter->cur + 1; return strdup(blaze822_seq_cur()); } else { return 0;