1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 22:22:27 +01:00

fix :cd to bypass 'cdpath' for absolute pathnames on Windows

This commit is contained in:
Doug Kearns
2008-10-02 06:15:38 +00:00
parent 7c9c7f0f63
commit 55ee4e59bf

View File

@@ -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))