diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-07-14 16:54:04 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-07-14 16:54:04 +1200 |
commit | 7e21ac0eb8c584527761b84af99974dd74f5c263 (patch) | |
tree | 1a7d6e759301febd73116692ee00e8d061956a0e /libmproxy | |
parent | 1c9e7b982a7d3fe76f5bd03e53b21b9d450f4607 (diff) | |
download | mitmproxy-7e21ac0eb8c584527761b84af99974dd74f5c263.tar.gz mitmproxy-7e21ac0eb8c584527761b84af99974dd74f5c263.tar.bz2 mitmproxy-7e21ac0eb8c584527761b84af99974dd74f5c263.zip |
Refine path completion somewhat.
Make it match the behaviour of vim and mutt more closely
Diffstat (limited to 'libmproxy')
-rw-r--r-- | libmproxy/console.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libmproxy/console.py b/libmproxy/console.py index ffe37fc3..e4d3057d 100644 --- a/libmproxy/console.py +++ b/libmproxy/console.py @@ -517,7 +517,6 @@ class ConnectionView(WWrap): class _PathCompleter: - DEFAULTPATH = "/bin:/usr/bin:/usr/local/bin" def __init__(self, _testing=False): """ _testing: disables reloading of the lookup table to make testing possible. @@ -542,9 +541,6 @@ class _PathCompleter: if os.path.isdir(path): files = glob.glob(os.path.join(path, "*")) prefix = txt - elif os.path.isfile(path): - prefix = os.path.dirname(txt) - files = glob.glob(prefix+"/*") else: files = glob.glob(path+"*") prefix = os.path.dirname(txt) |