vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit d171c5c1acb5d7a5f8682a1fa5e39f9ec576e700
parent 320aa621d665cf8d9638c8263c55eb790b67cf87
Author: Florian Fischer <florian.fischer@muhq.space>
Date:   Thu, 14 Nov 2024 14:44:33 +0100

lua: fix table member reference in set_syntax

Reported-By: aimixsaka <aimixsaka@gmail.com>

Diffstat:
Mlua/vis.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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