From 967cdfcef536e771058f6e0927333ee2ed334283 Mon Sep 17 00:00:00 2001 From: Tim Clem Date: Wed, 20 Jun 2012 09:33:42 -0700 Subject: [PATCH] Use full path for sketch name --- plugin/vim-arduino.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 plugin/vim-arduino.vim diff --git a/plugin/vim-arduino.vim b/plugin/vim-arduino.vim old mode 100644 new mode 100755 index 995759c..b759a8e --- a/plugin/vim-arduino.vim +++ b/plugin/vim-arduino.vim @@ -69,7 +69,7 @@ endfunction " Returns the filename of the current buffer if it is a *.pde file. Otherwise " empty string. function! s:CheckFile() - let l:f_name = bufname("%") + let l:f_name = expand('%:p') if l:f_name =~ '.pde$' return l:f_name elseif l:f_name =~ '.ino$'