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.
1 parent c5013d8 commit ef8a8cfCopy full SHA for ef8a8cf
nvim/nvim.go
@@ -94,6 +94,15 @@ func (v *Nvim) Close() error {
94
return err
95
}
96
97
+// ExitCode returns the exit code of the exited nvim process.
98
+func (v *Nvim) ExitCode() int {
99
+ if v.cmd.ProcessState == nil {
100
+ return -1
101
+ }
102
+
103
+ return v.cmd.ProcessState.ExitCode()
104
+}
105
106
// New creates an Nvim client. When connecting to Nvim over stdio, use stdin as
107
// r and stdout as w and c, When connecting to Nvim over a network connection,
108
// use the connection for r, w and c.
0 commit comments