diff options
author | Guldoman <giulio.lettieri@gmail.com> | 2021-12-01 04:32:08 +0100 |
---|---|---|
committer | Guldoman <giulio.lettieri@gmail.com> | 2021-12-01 04:32:08 +0100 |
commit | 4e0496ffcf96dfa0f7de70bcc055170d4f2f54c0 (patch) | |
tree | 8c395fe8534e6b2c7ce8e25e0e45f5acbe601b3b /plugins | |
parent | fe42f455405f02a60319ca7056ba405080a3e640 (diff) | |
download | lite-xl-plugins-4e0496ffcf96dfa0f7de70bcc055170d4f2f54c0.tar.gz lite-xl-plugins-4e0496ffcf96dfa0f7de70bcc055170d4f2f54c0.zip |
`force_syntax`: Provide empty header to `syntax.get`
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/force_syntax.lua | 2 |
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 |