Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b3f2d5

Browse files
committed
Fix error an error when running on Windows
1 parent 77324c2 commit 2b3f2d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lusted.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Note that these configurations can be changed via script too, check the document
7878
-- Returns whether the terminal supports UTF-8 characters.
7979
local function is_utf8term()
8080
local lang = os.getenv('LANG')
81-
return lang:lower():match('utf%-8$') and true or false
81+
return (lang and lang:lower():match('utf%-8$')) and true or false
8282
end
8383

8484
-- Returns whether a system environment variable is "true".

0 commit comments

Comments
 (0)