configmanager: Fix checking of absolute paths on Windows
authorKim Alvefur <zash@zash.se>
Fri, 30 Aug 2013 16:51:55 +0000 (18:51 +0200)
committerKim Alvefur <zash@zash.se>
Fri, 30 Aug 2013 16:51:55 +0000 (18:51 +0200)
core/configmanager.lua

index 9720f48ac1156ed243b3d324f1cb968273c12ce9..d73bafa4e2bc2ff126b86056af72dd8f0c416106 100644 (file)
@@ -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