about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-09-26 15:24:51 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-09-26 15:24:51 -0700
commita68647ae223357455274d163eb927528399df05e (patch)
treee0e73d059c3ae9115c59d7b9148d7fc98e8500fb
parent1c49f74c8d4ae7e2b3657e1eb11bb4d36063e50d (diff)
parentd1dd3e441f35a2f54b699e7a3a1874a4788f8ed5 (diff)
downloadview.love-a68647ae223357455274d163eb927528399df05e.tar.gz
Merge lines.love
-rw-r--r--file.lua1
-rw-r--r--source_file.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/file.lua b/file.lua
index 12bd5a1..d7fcc4e 100644
--- a/file.lua
+++ b/file.lua
@@ -65,6 +65,7 @@ function is_absolute_path(path)
     -- POSIX systems permit backslashes in filenames
     return path:sub(1,1) == '/'
   elseif os_path_separator == '\\' then
+    if path:sub(2,2) == ':' then return true end  -- DOS drive letter followed by volume separator
     local f = path:sub(1,1)
     return f == '/' or f == '\\'
   else
diff --git a/source_file.lua b/source_file.lua
index 54624b9..194ef9b 100644
--- a/source_file.lua
+++ b/source_file.lua
@@ -206,6 +206,7 @@ function is_absolute_path(path)
     -- POSIX systems permit backslashes in filenames
     return path:sub(1,1) == '/'
   elseif os_path_separator == '\\' then
+    if path:sub(2,2) == ':' then return true end  -- DOS drive letter followed by volume separator
     local f = path:sub(1,1)
     return f == '/' or f == '\\'
   else