From 4e0496ffcf96dfa0f7de70bcc055170d4f2f54c0 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Wed, 1 Dec 2021 04:32:08 +0100 Subject: `force_syntax`: Provide empty header to `syntax.get` --- plugins/force_syntax.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/force_syntax.lua') diff --git a/plugins/force_syntax.lua b/plugins/force_syntax.lua index be9cbbc..dce4abc 100644 --- a/plugins/force_syntax.lua +++ b/plugins/force_syntax.lua @@ -14,7 +14,7 @@ local function doc() end -- Force plaintext syntax to have a name -local plain_text_syntax = syntax.get("") +local plain_text_syntax = syntax.get("", "") plain_text_syntax.name = plain_text_syntax.name or "Plain Text" local doc_reset_syntax = Doc.reset_syntax -- cgit v1.2.3