# HG changeset patch # User Kim Alvefur # Date 1377881515 -7200 # Node ID 27ae988f5b70b45c220eba03d4e1e883c4e1c2fc # Parent 99ad8d42d0c9bc7390237c876dec39b24d82df93 configmanager: Fix checking of absolute paths on Windows diff -r 99ad8d42d0c9 -r 27ae988f5b70 core/configmanager.lua --- a/core/configmanager.lua Fri Aug 30 16:14:31 2013 +0200 +++ b/core/configmanager.lua Fri Aug 30 18:51:55 2013 +0200 @@ -77,7 +77,7 @@ local is_relative; if path_sep == "/" and path:sub(1,1) ~= "/" then is_relative = true; - elseif path_sep == "\\" and (path:sub(1,1) ~= "/" and (path:sub(2,3) ~= ":\\" or path:sub(2,3) ~= ":/")) then + elseif path_sep == "\\" and (path:sub(1,1) ~= "/" and (path:sub(2,3) ~= ":\\" and path:sub(2,3) ~= ":/")) then is_relative = true; end if is_relative then