From f840bcaf95dea328b9edc76c68e27d42cf79330b Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 14 Nov 2024 14:44:33 +0100 Subject: [PATCH] lua: fix table member reference in set_syntax Reported-By: aimixsaka --- lua/vis.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/vis.lua b/lua/vis.lua index d06bbafbb..9ac41b05e 100644 --- a/lua/vis.lua +++ b/lua/vis.lua @@ -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