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.
2 parents bf371b9 + 53c845e commit 4651b71Copy full SHA for 4651b71
autoload/arduino.vim
@@ -600,11 +600,15 @@ function! arduino#Serial() abort
600
call arduino#RunCmd(cmd)
601
endfunction
602
603
-function! arduino#UploadAndSerial() abort
+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 = '!'
607
let ret = arduino#Upload()
608
if ret == 0
609
call arduino#Serial()
610
endif
611
+ let s:TERM = termBackup
612
613
614
" Serial helpers {{{2
0 commit comments