diff options
author | wm4 <wm4@nowhere> | 2020-05-27 15:01:39 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-05-27 15:01:39 +0200 |
commit | 1b03970d79d06b18d0023a87c33fc546c1f988b5 (patch) | |
tree | 1b74eee4d52c80dd564f8d2b002b540eb6e7c646 | |
parent | b1d16a2300c99fd6bf847b6b3374280f9aafa87d (diff) | |
download | mpv-1b03970d79d06b18d0023a87c33fc546c1f988b5.tar.bz2 mpv-1b03970d79d06b18d0023a87c33fc546c1f988b5.tar.xz |
lua: windows got what users crave
It's got '\r's.
Fixes: #7733
-rw-r--r-- | player/lua/options.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/player/lua/options.lua b/player/lua/options.lua index c3039196be..1ea0d7226c 100644 --- a/player/lua/options.lua +++ b/player/lua/options.lua @@ -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 |