show cwd unless derive

This commit is contained in:
jremmen 2016-09-25 00:17:10 -07:00
parent 2b6700c2aa
commit c7e5c821ce

View file

@ -91,7 +91,11 @@ fun! s:RgHasFile(path)
endfun
fun! s:RgShowRoot()
echo s:RgRootDir()
if exists('g:rg_derive_root')
echo s:RgRootDir()
else
echo getcwd()
endif
endfun
command! -nargs=* Rg :call s:Rg(<q-args>)