From baf3be038ac38bcbcfb130b6eb09774bc25981f1 Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Thu, 30 Apr 2015 13:52:33 +0200 Subject: [PATCH] Fix wrong highlight of directories when maxhi is set --- autoload/vimwiki/base.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim index deb0e9c..cd5b99b 100644 --- a/autoload/vimwiki/base.vim +++ b/autoload/vimwiki/base.vim @@ -591,10 +591,10 @@ function! vimwiki#base#get_wiki_directories(wiki_nr) endif let result = ['./'] for wikidir in dirs - let wikidir_relative = vimwiki#path#relpath(cwd, wikidir).'/' + let wikidir_relative = vimwiki#path#relpath(cwd, wikidir) call add(result, wikidir_relative) if a:wiki_nr == g:vimwiki_current_idx - let wikidir_absolute = '/'.vimwiki#path#relpath(root_dir, wikidir).'/' + let wikidir_absolute = '/'.vimwiki#path#relpath(root_dir, wikidir) call add(result, wikidir_absolute) endif endfor