diff options
author | Nicolas Petton | 2021-02-25 12:35:15 +0100 |
---|---|---|
committer | Nicolas Petton | 2021-02-25 12:35:15 +0100 |
commit | 0a80d806fe9279308df2dd4960b95c2a35273ed5 (patch) | |
tree | 7f3575693abef52a2ac03ec7553111b1d7f6f0a6 /nroam.el | |
parent | ca401e48726116160ed360adcdaa16ba56f0b95c (diff) | |
download | nroam-0a80d806fe9279308df2dd4960b95c2a35273ed5.tar.gz nroam-0a80d806fe9279308df2dd4960b95c2a35273ed5.zip |
* nroam.el (nroam--insert-backlinks-heading): Simplify
Diffstat (limited to 'nroam.el')
-rw-r--r-- | nroam.el | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -210,11 +210,9 @@ Make the region inserted by BODY read-only, and marked with (defun nroam--insert-backlinks-heading (count) "Insert the heading for the backlinks section with a COUNT." - (insert (if (= count 0) - "* No linked reference\n" - (format "* %s %s\n" - count - (nroam--pluralize count "linked reference"))))) + (insert (format "* %s %s\n" + (if (= count 0) "No" count) + (nroam--pluralize count "linked reference")))) (defun nroam--insert-backlink-group (group) "Insert all backlinks in GROUP." |