diff options
author | John <john+github@ankarstrom.se> | 2020-02-04 10:54:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 10:54:38 +0100 |
commit | 60f8fa3494d1981ede502f4caf8b471d25de759d (patch) | |
tree | 7186edcde6b9d60beb5ce53dd746cfbef1e2f042 | |
parent | 68922d857f75e4a373e4e2273f0c921478609c50 (diff) | |
parent | f4320d246bc03ad06e5c20740fee1c385d7c3551 (diff) | |
download | vis-filetype-settings-master.tar.gz |
Merge pull request #3 from x1ddos/patch-1master
Avoid referencing undeclared nil settings
-rw-r--r-- | vis-filetype-settings.lua | 1 |
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 |