You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am using easy hugo for some years.
I really like it.
The follwing code will do nothing when there is only 1 blog in easy-hugo-bloglist. (defun easy-hugo-next-blog () "Go to next blog." (when (< 1 (length easy-hugo-bloglist)) (if (eq (- (length easy-hugo-bloglist) 1) easy-hugo--current-blog) (setq easy-hugo--current-blog 0)
In that case,
(length easy-hugo-bloglist)
return 1 and exit the function.
Should it be either of the following code?
(boundp 'easy-hugo-bloglist)
or
(when (< 0 (length easy-hugo-bloglist))
Well, I am trying to fix this issue but haven't got good solution.
The text was updated successfully, but these errors were encountered:
Hi,
I am using easy hugo for some years.
I really like it.
The follwing code will do nothing when there is only 1 blog in easy-hugo-bloglist.
(defun easy-hugo-next-blog () "Go to next blog." (when (< 1 (length easy-hugo-bloglist)) (if (eq (- (length easy-hugo-bloglist) 1) easy-hugo--current-blog) (setq easy-hugo--current-blog 0)
In that case,
(length easy-hugo-bloglist)
return 1 and exit the function.
Should it be either of the following code?
(boundp 'easy-hugo-bloglist)
or
(when (< 0 (length easy-hugo-bloglist))
Well, I am trying to fix this issue but haven't got good solution.
The text was updated successfully, but these errors were encountered: