Revert "[filename_completer] Append '/' to [DIR] automatically"

This reverts commit 48d6a5378c.
This commit is contained in:
Strahinja Val Markovic 2013-05-11 12:24:35 -07:00
parent 1a2ff2c1af
commit 7bb7e20f8d

View File

@ -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]' }