1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From f840bcaf95dea328b9edc76c68e27d42cf79330b Mon Sep 17 00:00:00 2001
From: Florian Fischer <florian.fischer@muhq.space>
Date: Thu, 14 Nov 2024 14:44:33 +0100
Subject: [PATCH] lua: fix table member reference in set_syntax
Reported-By: aimixsaka <aimixsaka@gmail.com>
---
lua/vis.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lua/vis.lua b/lua/vis.lua
index d06bbaf..9ac41b0 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
--
2.47.0
|