From 1687b8573daf7ee73241fa2651ac5bed07c10cdf Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 27 Aug 2009 13:45:19 +0200 Subject: [PATCH] Use local variables for storing visualizer dicts. Using global variables could cause problems when pretty printers call eachother and use the vis variable. --- pret-lam.lua | 2 +- pret-trans.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pret-lam.lua b/pret-lam.lua index ea07811..ce4ac47 100644 --- a/pret-lam.lua +++ b/pret-lam.lua @@ -6,7 +6,7 @@ local utf = unicode.utf8 -vis = buffers.newvisualizer("lam") +local vis = buffers.newvisualizer("lam") local colors = { "prettytwo", diff --git a/pret-trans.lua b/pret-trans.lua index 238a4e5..6ad51b7 100644 --- a/pret-trans.lua +++ b/pret-trans.lua @@ -9,7 +9,7 @@ local utf = unicode.utf8 -vis = buffers.newvisualizer("trans") +local vis = buffers.newvisualizer("trans") local commands = {} -- A command to create a horizontal rule. -- 2.30.2