1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00

lua: windows got what users crave

It's got '\r's.

Fixes: #7733
This commit is contained in:
wm4 2020-05-27 15:01:39 +02:00
parent b1d16a2300
commit 1b03970d79

View File

@ -76,6 +76,9 @@ local function read_options(options, identifier, on_update)
msg.verbose("Opened config file " .. conffilename .. ".")
local linecounter = 1
for line in f:lines() do
if line:sub(#line) == "\r" then
line = line:sub(1, #line - 1)
end
if string.find(line, "#") == 1 then
else