From c7d98b691e7378e7be098ebab51b359dfce8a8ed Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 30 Aug 2013 18:51:55 +0200 Subject: configmanager: Fix checking of absolute paths on Windows --- core/configmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/configmanager.lua') diff --git a/core/configmanager.lua b/core/configmanager.lua index 9720f48a..d73bafa4 100644 --- a/core/configmanager.lua +++ b/core/configmanager.lua @@ -77,7 +77,7 @@ do 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 -- cgit v1.2.3