Skip to content

Commit

Permalink
fix: ensure random theme within list range
Browse files Browse the repository at this point in the history
  • Loading branch information
guidoschmidt committed Nov 26, 2024
1 parent da7f48f commit 0a6a9b4
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 @@ -167,7 +167,7 @@ set and and sort the final list by time."
(custom-theme-enabled-p entry))
theme-or-theme-list)))
(progn
(nth (random (length theme-or-theme-list)) possible-theme-list)))
(nth (random (length possible-theme-list)) possible-theme-list)))
theme-or-theme-list)))
(circadian-enable-theme theme)))

Expand Down

0 comments on commit 0a6a9b4

Please sign in to comment.