Skip to content

Commit 7dbf210

Browse files
committed
return to previous window if zig fmt returns error
ends automatic window switch to quickfix when `zig fmt` errors
1 parent c33e1e3 commit 7dbf210

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

autoload/zig/fmt.vim

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ function! zig#fmt#Format() abort
6969

7070
if err != 0
7171
echohl Error | echomsg "zig fmt returned error" | echohl None
72+
wincmd p
7273
return
7374
endif
7475

0 commit comments

Comments
 (0)