Skip to content

Commit 967cdfc

Browse files
committed
Use full path for sketch name
1 parent ac43102 commit 967cdfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/vim-arduino.vim

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ endfunction
6969
" Returns the filename of the current buffer if it is a *.pde file. Otherwise
7070
" empty string.
7171
function! s:CheckFile()
72-
let l:f_name = bufname("%")
72+
let l:f_name = expand('%:p')
7373
if l:f_name =~ '.pde$'
7474
return l:f_name
7575
elseif l:f_name =~ '.ino$'

0 commit comments

Comments
 (0)