Skip to content

Commit 57ce076

Browse files
committed
Merge pull request #85 from fnichol/fnichol/rustfmt-exit-3
Support rustfmt 0.5.0 exit codes.
2 parents 3345464 + a1054e5 commit 57ce076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/rustfmt.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function! rustfmt#Format()
2929

3030
let out = systemlist(command . g:rustfmt_options . " " . shellescape(l:tmpname))
3131

32-
if v:shell_error == 0
32+
if v:shell_error == 0 || v:shell_error == 3
3333
" remove undo point caused via BufWritePre
3434
try | silent undojoin | catch | endtry
3535

0 commit comments

Comments
 (0)