Browse Source

Better headline when no linked reference

* nroam.el (nroam--insert-backlinks-heading): Display "No linked reference"
there is no backlink.
master
Nicolas Petton 1 month ago
parent
commit
3eb25846d4
No known key found for this signature in database GPG Key ID: E8BCD7866AFCF978
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      nroam.el

+ 5
- 3
nroam.el View File

@ -208,9 +208,11 @@ 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 (format "* %s %s\n"
count
(nroam--pluralize count "linked reference"))))
(insert (if (= count 0)
"* No linked reference"
(format "* %s %s\n"
count
(nroam--pluralize count "linked reference")))))
(defun nroam--insert-backlink-group (group)
"Insert all backlinks in GROUP."


Loading…
Cancel
Save