branch: externals/modus-themes
commit e5f0a31f9214fb8e98a0ee50a81e1e181a789183
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Fall back to -1 instead of 0 in modus-themes-rotate-subr
    
    Thanks to Grant Rosson for pointing this out in issue 60 on the
    ef-themes repository: 
<https://github.com/protesilaos/ef-themes/issues/60#issuecomment-3346124052>.
---
 modus-themes.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modus-themes.el b/modus-themes.el
index fd9203c431..916018236e 100644
--- a/modus-themes.el
+++ b/modus-themes.el
@@ -4878,7 +4878,7 @@ Disable other themes per 
`modus-themes-disable-other-themes'."
 The theme is the next among THEMES if it is possible to rotate to it.
 When REVERSE is non-nil, move to the left, else to the right."
   (if-let* ((valid-themes (modus-themes-known-p themes)))
-      (if-let* ((index (or (seq-position valid-themes 
(modus-themes-get-current-theme)) 0))
+      (if-let* ((index (or (seq-position valid-themes 
(modus-themes-get-current-theme)) -1))
                 (offset (mod
                          (if reverse (1- index) (1+ index))
                          (length valid-themes)))

Reply via email to