Skip to content

Commit 28466bf

Browse files
committed
Fix plumb ctx dir in scripts in special x/ dir
1 parent 3ddfd3e commit 28466bf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

plugin/acme.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,8 @@ function s:CtxDir()
554554
let d = substitute(dir, '\v/\.git(/.*)?', '', '')
555555
endif
556556
let dir = d
557+
elseif dir =~ '\v/x$' && filereadable(dir.'/../guide')
558+
let dir = fnamemodify(dir.'/..', ':p')
557559
endif
558560
return dir
559561
endfunc

0 commit comments

Comments
 (0)