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