Skip to content

Error in post-command-hook (vertico--exhibit): (wrong-type-argument stringp t) #503

Answered by arouene
arouene asked this question in Q&A
Discussion options

You must be logged in to vote

In this var, the doctring and initial value is inverted.

(defvar kanagawa-theme-true-color-p
  "When non-nil use true color values in color palette."
  (or (display-graphic-p) (= (tty-display-color-cells) 16777216)))

So marginalia get this as a type "string", but later it returns a bool.

The "fault" is obviously from kanagawa-theme. But it could be nice if vertico/marginalia handles the problem gracefully, as one variable in the completion modeline can make vertico stop working, even if this is not the variable we are searching for.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@arouene
Comment options

@arouene
Comment options

@arouene
Comment options

Answer selected by minad
@arouene
Comment options

@minad
Comment options

@arouene
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #502 on July 20, 2024 20:21.