seagle0128 / doom-modeline

A fancy and fast mode-line inspired by minimalism design.
https://seagle0128.github.io/doom-modeline/
GNU General Public License v3.0
1.27k stars 157 forks source link

[Bug] Error during redisplay: (eval (doom-modeline-segment--check) t) signaled (args-out-of-range 1 1) #724

Closed hubisan closed 2 months ago

hubisan commented 2 months ago

Thank you for the bug report

Bug description

Since I pulled the package last time I get this error:

Error during redisplay: (eval (doom-modeline-segment--check) t) signaled (args-out-of-range 1 1)

This happens when I am in a buffer and there are no errors/warnings/note reported from flymake (and probably also flycheck). I have the following config:

(setq
 doom-modeline-check-simple-format t
 mode-line-right-align-edge 'right-fringe
 doom-modeline-height 22
 doom-modeline-bar-width 4
 doom-modeline-buffer-file-name-style 'buffer-name
 doom-modeline-icon nil
 doom-modeline-major-mode-icon nil
 doom-modeline-major-mode-color-icon nil
 doom-modeline-buffer-state-icon nil
 doom-modeline-buffer-modification-icon nil
 doom-modeline-vcs-max-length 20)

Setting doom-modeline-check-simple-format nil makes the error go away.

Steps to reproduce

Expected behavior

No error during redisplay.

OS

Linux

Emacs Version

30 (native compilation) and 29.2 (native compilation)

Emacs Configurations

none