Skip to content

Commit ce0361b

Browse files
authored
fix(linux): parse No preference as light instead of fallback (#53)
1 parent 2432dc1 commit ce0361b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/auto-dark-mode/interval.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ local function parse_query_response(stdout, stderr)
2222
-- 2: light
2323
if string.match(stdout, "uint32 1") ~= nil then
2424
return "dark"
25-
elseif string.match(stdout, "uint32 2") ~= nil then
25+
elseif string.match(stdout, "uint32 [02]") ~= nil then
2626
return "light"
2727
else
2828
return M.options.fallback

0 commit comments

Comments
 (0)