aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vis-filetype-settings.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/vis-filetype-settings.lua b/vis-filetype-settings.lua
index ff4a94c..d96a0af 100644
--- a/vis-filetype-settings.lua
+++ b/vis-filetype-settings.lua
@@ -26,6 +26,7 @@
-- filetype, leading to an infinite loop.
vis.events.subscribe(vis.events.WIN_OPEN, function(win)
+ if settings == nil then return end
local window_settings = settings[win.syntax]
if type(window_settings) == "table" then