Skip to content

Commit 4651b71

Browse files
authored
Merge pull request #53 from elig0n/patch-1
Deliberate blocking UploadAndSerial() hack
2 parents bf371b9 + 53c845e commit 4651b71

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

autoload/arduino.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,11 +600,15 @@ function! arduino#Serial() abort
600600
call arduino#RunCmd(cmd)
601601
endfunction
602602

603-
function! arduino#UploadAndSerial() abort
603+
function! arduino#UploadAndSerial()
604+
" Since 'terminal!' is non-blocking '!' must be used to provide this functionality
605+
let termBackup = s:TERM
606+
let s:TERM = '!'
604607
let ret = arduino#Upload()
605608
if ret == 0
606609
call arduino#Serial()
607610
endif
611+
let s:TERM = termBackup
608612
endfunction
609613

610614
" Serial helpers {{{2

0 commit comments

Comments
 (0)