Open niklaas opened 9 months ago
Closing with :w
and then :q
works as expected while closing with :wq
causes the error.
is the culprit because it's the last call which updates v:shell_error
. When vim is opened using vipe
, this isn't within a git repository, so the exit code is nonzero. This will be leaked to vim's exit code.
I haven't found a clever way to prevent this yet since v:shell_error
is read only and there's no way to circumvent it.
OK, for the time being, my workaround is not to add the plugin as the last one since that seems not to call the call system
mentioned above as the very last one. 😅