We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c4d6b6 commit e9977ebCopy full SHA for e9977eb
plugin/vim-arduino.vim
@@ -66,12 +66,12 @@ endfunction
66
67
" Private: Check to see if a file can be compiled by the Aruino IDE
68
"
69
-" Returns the filename of the current buffer if it is a *.pde file. Otherwise
+" Returns the absolute path of the current buffer if it is a *.pde file. Otherwise
70
" empty string.
71
function! s:CheckFile()
72
let l:f_name = bufname("%")
73
if l:f_name =~ '.pde$'
74
- return l:f_name
+ return expand("%:p")
75
else
76
echo "Only *.pde files can be compilied. File" l:f_name "does not have a recognized extention."
77
return ""
0 commit comments