mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 10:08:00 +01:00
fix :cd to bypass 'cdpath' for absolute pathnames on Windows again -
overwritten in recent commit
This commit is contained in:
@@ -142,7 +142,7 @@ liberator.IO = function () //{{{
|
||||
|
||||
// go directly to an absolute path or look for a relative path
|
||||
// match in 'cdpath'
|
||||
if (/^(~|\/|\.\/|\.\.\/)/.test(args))
|
||||
if (/^(~|\/|[a-z]:|\.\/|\.\.\/)/i.test(args))
|
||||
{
|
||||
// TODO: apparently we don't handle ../ or ./ paths yet
|
||||
if (liberator.io.setCurrentDirectory(args))
|
||||
|
||||
Reference in New Issue
Block a user