From 29808f273c817543d049f6d2541a550e233de4ff Mon Sep 17 00:00:00 2001 From: wrapperup Date: Sun, 21 May 2023 16:25:43 -0400 Subject: [PATCH] fix: opening with lowercase drive letters --- lua/oil/fs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/oil/fs.lua b/lua/oil/fs.lua index 3a5efa1..7c9002a 100644 --- a/lua/oil/fs.lua +++ b/lua/oil/fs.lua @@ -57,7 +57,7 @@ M.os_to_posix_path = function(path) if M.is_windows then if M.is_absolute(path) then local drive, rem = path:match("^([^:]+):\\(.*)$") - return string.format("/%s/%s", drive, rem:gsub("\\", "/")) + return string.format("/%s/%s", drive:upper(), rem:gsub("\\", "/")) else return path:gsub("\\", "/") end