Skip to content

Commit

Permalink
FIX: fix infinite recursion in circadian.el (#34)
Browse files Browse the repository at this point in the history
I am not sure why this is happening, but it seems removing the
extraneous cl-second call fixes the issue.
  • Loading branch information
LemonBreezes committed Apr 26, 2024
1 parent 9927f4e commit e50b445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion circadian.el
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ set and and sort the final list by time."
(entry (car (last (or past-themes themes))))
(theme-or-theme-list (cdr entry))
(theme (if (listp theme-or-theme-list)
(nth (random (length (cl-second theme-or-theme-list))) (cl-second theme-or-theme-list))
(nth (random (length theme-or-theme-list)) theme-or-theme-list)
theme-or-theme-list)))
(circadian-enable-theme theme)
))
Expand Down

0 comments on commit e50b445

Please sign in to comment.