summary refs log tree commit diff
path: root/gnbug
diff options
context:
space:
mode:
authorArun Isaac2021-09-23 13:11:17 +0530
committerArun Isaac2021-09-23 14:16:47 +0530
commitbb47ae9373fc0959022ed59992485f3e044bbd1b (patch)
tree66ff8f2648b948daa448751883b2e96324b9a652 /gnbug
parent1f1a0423ead4a9324bfb25db5a2c72e960799f96 (diff)
downloadgn-gemtext-bb47ae9373fc0959022ed59992485f3e044bbd1b.tar.gz
gnbug: Print only open bugs in issue listing.
* gnbug (gnbug-list): Print only open bugs in issue listing.
* README.gmi (gnbug): Update documentation.
Diffstat (limited to 'gnbug')
-rwxr-xr-xgnbug7
1 files changed, 4 insertions, 3 deletions
diff --git a/gnbug b/gnbug
index c57f717..f884c2a 100755
--- a/gnbug
+++ b/gnbug
@@ -266,9 +266,10 @@ terminal."
             (list-transduce (compose (tenumerate 1)
                                      (tfilter (match-lambda
                                                 ((_ . issue)
-                                                 (or (not (assq 'assigned args))
-                                                     (member (assq-ref args 'assigned)
-                                                             (issue-assigned issue))))))
+                                                 (and (issue-open issue)
+                                                      (or (not (assq 'assigned args))
+                                                          (member (assq-ref args 'assigned)
+                                                                  (issue-assigned issue)))))))
                                      (tlog (match-lambda*
                                              ((_ (index . issue))
                                               (format #t "~a ~a ~a ~a~a~a~%"