Skip to content

Commit

Permalink
Fix #557 abbr in file source
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jan 10, 2019
1 parent 65bce80 commit 805d1e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rplugin/python3/denite/source/file/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def gather_candidates(self, context):
for f in glob.glob(glb):
candidates.append({
'word': f,
'abbr': os.path.relpath(
f + ('/' if os.path.isdir(f) else ''), path),
'abbr': os.path.relpath(f, path) + (
'/' if os.path.isdir(f) else ''),
'kind': ('directory' if os.path.isdir(f) else 'file'),
'action__path': abspath(self.vim, f),
})
Expand Down

0 comments on commit 805d1e0

Please sign in to comment.