Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77324c2 commit 2b3f2d5Copy full SHA for 2b3f2d5
1 file changed
lusted.lua
@@ -78,7 +78,7 @@ Note that these configurations can be changed via script too, check the document
78
-- Returns whether the terminal supports UTF-8 characters.
79
local function is_utf8term()
80
local lang = os.getenv('LANG')
81
- return lang:lower():match('utf%-8$') and true or false
+ return (lang and lang:lower():match('utf%-8$')) and true or false
82
end
83
84
-- Returns whether a system environment variable is "true".
0 commit comments