Skip to content

Commit b915b2e

Browse files
authored
Deliberate blocking UploadAndSerial() implementation
Issue stevearc#52
1 parent bf371b9 commit b915b2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

autoload/arduino.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,10 +601,14 @@ function! arduino#Serial() abort
601601
endfunction
602602

603603
function! arduino#UploadAndSerial() abort
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)