aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2013-12-19 17:12:03 -0500
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2013-12-19 17:12:03 -0500
commitd43224542be41473fbdc6738d0387f783c9e5b87 (patch)
tree012b674a53b1c10b4648593c1c39d77864fc9db8
parent1466a5fc4e5c21eaadbbfc9cda8d9fb0f368f02b (diff)
Some programs pass lower-case drive letters to external editors; core/args.lua
-rw-r--r--core/args.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/args.lua b/core/args.lua
index b9635d29..6f63f616 100644
--- a/core/args.lua
+++ b/core/args.lua
@@ -57,7 +57,7 @@ function M.process(arg)
f(table.unpack(args))
i = i + n
else
- if not arg[i]:find(not WIN32 and '^/' or '^%u:[/\\]') then
+ if not arg[i]:find(not WIN32 and '^/' or '^%a:[/\\]') then
-- Convert relative path to absolute path.
local cwd = arg[-1] or lfs.currentdir()
arg[i] = cwd..(not WIN32 and '/' or '\\')..arg[i]