Skip to content

Commit 1a4fd15

Browse files
committed
Fix command escaping in vim 8
As mentioned in vim/vim#4288 the vim8 rules for quoting and escaping a `:terminal` command are not documented and do not make sense. Changing the quotes from single to double will workaround the issue for now.
1 parent dbb1115 commit 1a4fd15

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

autoload/arduino.vim

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ function! arduino#GetArduinoCommand(cmd) abort
189189
endif
190190
let l:build_path = arduino#GetBuildPath()
191191
if !empty(l:build_path)
192-
let cmd = cmd . " --pref build.path='" . l:build_path . "'"
192+
let cmd = cmd . " --pref " . '"build.path=' . l:build_path . '"'
193193
endif
194-
let cmd = cmd . " " . g:arduino_args . " '" . expand('%:p') . "'"
194+
let cmd = cmd . " " . g:arduino_args . ' "' . expand('%:p') . '"'
195195
return cmd
196196
endfunction
197197

@@ -635,5 +635,4 @@ else
635635
let g:arduino_fzf_enabled = 0
636636
endif
637637

638-
" vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1
639-
638+
" vim:fen:fdm=marker:fmr={{{,}}}

0 commit comments

Comments
 (0)