From 7e21ac0eb8c584527761b84af99974dd74f5c263 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 14 Jul 2011 16:54:04 +1200 Subject: Refine path completion somewhat. Make it match the behaviour of vim and mutt more closely --- libmproxy/console.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libmproxy') 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) -- cgit v1.2.3