Skip to content

Commit

Permalink
style: use (length> icon-string 0)
Browse files Browse the repository at this point in the history
  • Loading branch information
nobiot committed Oct 25, 2024
1 parent 9d6d389 commit 76e5e85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions org-remark-icon.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
;; Author: Noboru Ota <[email protected]>
;; URL: https://github.com/nobiot/org-remark
;; Created: 29 July 2023
;; Last modified: 23 March 2024
;; Last modified: 25 October 2024
;; Package-Requires: ((emacs "27.1") (org "9.4"))
;; Keywords: org-mode, annotation, note-taking, marginal-notes, wp

Expand Down Expand Up @@ -170,7 +170,7 @@ Each overlay is a highlight."
(let ((icon-string
;; The third arg of `mapconcat' is not optional in Emacs 28 or lower.
(mapconcat #'add-icon-maybe org-remark-icons nil)))
(when (< 0 (length icon-string))
(when (length> icon-string 0)
(org-remark-icon-overlay-put
ov icon-string
(overlay-get ov 'org-remark-type)))))))
Expand Down

0 comments on commit 76e5e85

Please sign in to comment.