Skip to content

Commit

Permalink
lua: fix table member reference in set_syntax
Browse files Browse the repository at this point in the history
Reported-By: aimixsaka <[email protected]>
  • Loading branch information
fischerling committed Nov 14, 2024
1 parent c0d083f commit f840bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/vis.lua
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ vis.types.window.set_syntax = function(win, syntax)
if type(style) == 'table' then
local s = ''
if style.attr then
s = string.format("%s,%s", s, attr)
s = string.format("%s,%s", s, style.attr)
elseif style.fore then
s = string.format("%s,fore:%s", s, style.fore)
elseif style.back then
Expand Down

0 comments on commit f840bca

Please sign in to comment.