Skip to content

Commit

Permalink
fix: fix an error void-variable dv
Browse files Browse the repository at this point in the history
In recent Emacs-30, modeline and headerline stop working with the errors:
Error during redisplay: (eval (dirvish-path-ml dv) t) signaled (void-variable dv)
Error during redisplay: (eval (dirvish-sort-ml dv) t) signaled (void-variable dv)
  • Loading branch information
dvzubarev committed Jan 7, 2024
1 parent 119f9f5 commit 600b81d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dirvish.el
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ If HEADER, set the `dirvish--header-line-fmt' instead."
(cl-labels ((expand (segments)
(cl-loop for s in segments collect
(if (stringp s) s
`(:eval (,(intern (format "dirvish-%s-ml" s)) dv)))))
`(:eval (,(intern (format "dirvish-%s-ml" s)) (dirvish-curr))))))
(get-font-scale ()
(let* ((face (if header 'header-line 'mode-line-inactive))
(defualt (face-attribute 'default :height))
Expand Down

0 comments on commit 600b81d

Please sign in to comment.