From 7bb7e20f8dcc6b3e2611aa378a0305ec988e68cb Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sat, 11 May 2013 12:24:35 -0700 Subject: [PATCH] Revert "[filename_completer] Append '/' to [DIR] automatically" This reverts commit 48d6a5378c00949a03e4767b1bb38877604d13de. --- python/completers/general/filename_completer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/completers/general/filename_completer.py b/python/completers/general/filename_completer.py index d81b6658..01af4382 100644 --- a/python/completers/general/filename_completer.py +++ b/python/completers/general/filename_completer.py @@ -126,8 +126,7 @@ def GetPathsStandardCase( path_dir ): def GenerateCandidatesForPaths( absolute_paths ): def GenerateCandidateForPath( absolute_path ): is_dir = os.path.isdir( absolute_path ) - basename = os.path.basename( absolute_path ) - return { 'word': basename + '/' if is_dir else basename , + return { 'word': os.path.basename( absolute_path ), 'dup': 1, 'menu': '[Dir]' if is_dir else '[File]' }