Open aimixsaka opened 2 days ago
This is definitely an error.
Checking style.attr
in line 290 but using the global attr
in line 291 is wrong.
However, there is not a single style in the code base of vis defining a style as table. All style definitions use the string representation directly. Therefore, this mistake was probably never noticed except a user defines a style as a table. Which is unlikely because all examples are strings but possible.
Using something like in a custom user theme
lexers.STYLE_CLASS = {fore=colors.yellow, attr='bold'}
does not render the class tokens bold.
Problem
I'm building vis from source, following https://github.com/martanne/vis/wiki/Developer-Overview#luacheck, got:
lua/vis.lua:291
Is this a mistake ?
Steps to reproduce
No response
vis version (vis -v)
vis c0d083f +curses +lua +tre +acl
Terminal name/version
No response
$TERM environment variable
No response