From ba49c6b7d91f2e8ca1933211601fe909ecab083f Mon Sep 17 00:00:00 2001 From: Felix Date: Fri, 14 Feb 2014 12:45:04 +1300 Subject: [PATCH] Expand to fullpath with "%:p" --- autoload/hdevtools.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/hdevtools.vim b/autoload/hdevtools.vim index ba8ab2b..43efd75 100644 --- a/autoload/hdevtools.vim +++ b/autoload/hdevtools.vim @@ -69,7 +69,7 @@ function! hdevtools#info(identifier) return endif - let l:file = expand('%') + let l:file = expand('%:p') if l:file ==# '' call hdevtools#print_warning("current version of hdevtools.vim doesn't support running on an unnamed buffer.") return @@ -512,7 +512,7 @@ function! hdevtools#type() return b:hdevtools_type.type() endif - let l:file = expand('%') + let l:file = expand('%:p') if l:file ==# '' call hdevtools#print_warning("current version of hdevtools.vim doesn't support running on an unnamed buffer.") return ['', '']