aboutsummaryrefslogtreecommitdiff
path: root/plugins/force_syntax.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/force_syntax.lua')
-rw-r--r--plugins/force_syntax.lua2
1 files changed, 1 insertions, 1 deletions
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