Skip to content

Commit 6689281

Browse files
committed
remove 'hit enter to continue' prompt
macvim follows the clang-format spawn with a 'hit enter to continue' prompt when auto-format is on. eliminate the prompt by preceding the system() call with 'silent'.
1 parent e73d5bc commit 6689281

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoload/clang_format.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ function! s:system(str, ...) abort
2828
let input = a:0 >= 1 ? a:1 : ''
2929

3030
if a:0 == 0 || a:1 ==# ''
31-
let output = s:has_vimproc() ?
31+
silent let output = s:has_vimproc() ?
3232
\ vimproc#system(command) : system(command)
3333
elseif a:0 == 1
34-
let output = s:has_vimproc() ?
34+
silent let output = s:has_vimproc() ?
3535
\ vimproc#system(command, input) : system(command, input)
3636
else
3737
" ignores 3rd argument unless you have vimproc.
38-
let output = s:has_vimproc() ?
38+
silent let output = s:has_vimproc() ?
3939
\ vimproc#system(command, input, a:2) : system(command, input)
4040
endif
4141

0 commit comments

Comments
 (0)