Browse Source

* nroam.el (nroam--insert-backlinks-heading): Simplify

master
Nicolas Petton 1 month ago
parent
commit
0a80d806fe
No known key found for this signature in database GPG Key ID: E8BCD7866AFCF978
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      nroam.el

+ 3
- 5
nroam.el View File

@ -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."


Loading…
Cancel
Save