diff options
Diffstat (limited to 'src/nvim/os/shell.c')
-rw-r--r-- | src/nvim/os/shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c index bf72811117..8e49f8f2bb 100644 --- a/src/nvim/os/shell.c +++ b/src/nvim/os/shell.c @@ -229,7 +229,7 @@ int os_call_shell(char_u *cmd, ShellOpts opts, char_u *extra_shell_arg) } if (opts & kShellOptRead) { - if (pdata.ga.ga_len > 0) { + if (!GA_EMPTY(&pdata.ga)) { // If there's an unfinished line in the growable array, append it now. append_ga_line(&pdata.ga); // remember that the NL was missing |