Skip to content

Commit 1762f7f

Browse files
authored
nvim: fix ExitCode() (#154)
1 parent 8a0d470 commit 1762f7f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

nvim/nvim.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ func (v *Nvim) Close() error {
9696

9797
// ExitCode returns the exit code of the exited nvim process.
9898
func (v *Nvim) ExitCode() int {
99-
if v.cmd.ProcessState == nil {
100-
return -1
101-
}
102-
99+
v.cmd.Wait()
103100
return v.cmd.ProcessState.ExitCode()
104101
}
105102

0 commit comments

Comments
 (0)