mirror of
https://github.com/SqrtMinusOne/org-journal-tags.git
synced 2025-12-10 10:53:04 +03:00
fix: null index in org-journal-tags--transient-switches
This commit is contained in:
parent
7578762cda
commit
3914742637
1 changed files with 2 additions and 1 deletions
|
|
@ -2637,7 +2637,8 @@ are as follows:
|
|||
OBJ is an instance of the `org-journal-tags--transient-switches'
|
||||
class."
|
||||
(let ((choices (oref obj choices)))
|
||||
(let ((idx (cl-position (oref obj value) choices)))
|
||||
(let ((idx (or (cl-position (oref obj value) choices)
|
||||
-1)))
|
||||
(nth (% (1+ idx) (length choices)) choices))))
|
||||
|
||||
(cl-defmethod transient-format-value ((obj org-journal-tags--transient-switches))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue