From 235a4ec3e86b350dc205c7710fe2eaf56055426c Mon Sep 17 00:00:00 2001 From: Joshua Davey Date: Sun, 4 Aug 2013 21:41:57 -0500 Subject: [PATCH] Make alternates function public --- plugin/fireplace.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fireplace.vim b/plugin/fireplace.vim index 3e03c75..c7569bf 100644 --- a/plugin/fireplace.vim +++ b/plugin/fireplace.vim @@ -1126,7 +1126,7 @@ augroup fireplace_alternate autocmd FileType clojure command! -buffer -bar AT :exe s:Alternate('tabedit') augroup END -function! s:alternates() abort +function! fireplace#alternates() abort let ns = fireplace#ns() if ns =~# '-test$' let alt = [ns[0:-6]] @@ -1141,7 +1141,7 @@ function! s:alternates() abort endfunction function! s:Alternate(cmd) abort - let alternates = s:alternates() + let alternates = fireplace#alternates() for file in alternates let path = fireplace#findresource(file) if !empty(path)