aboutsummaryrefslogtreecommitdiff
path: root/plugins/force_syntax.lua
diff options
context:
space:
mode:
authorGuldoman <giulio.lettieri@gmail.com>2021-12-01 04:32:08 +0100
committerGuldoman <giulio.lettieri@gmail.com>2021-12-01 04:32:08 +0100
commit4e0496ffcf96dfa0f7de70bcc055170d4f2f54c0 (patch)
tree8c395fe8534e6b2c7ce8e25e0e45f5acbe601b3b /plugins/force_syntax.lua
parentfe42f455405f02a60319ca7056ba405080a3e640 (diff)
downloadlite-xl-plugins-4e0496ffcf96dfa0f7de70bcc055170d4f2f54c0.tar.gz
lite-xl-plugins-4e0496ffcf96dfa0f7de70bcc055170d4f2f54c0.zip
`force_syntax`: Provide empty header to `syntax.get`
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