diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-02 10:13:42 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-02 10:13:42 +0100 |
commit | bdace838c67c1bd94e55e34270a8325933891466 (patch) | |
tree | cf80ca41305e4c04a2ccb293b6634b20fb235fbe /src/os_unix.c | |
parent | d82a81cad93708a6c180e59119db4818cc38c1a9 (diff) | |
download | vim-git-bdace838c67c1bd94e55e34270a8325933891466.tar.gz |
patch 8.1.0989: various small code uglinessv8.1.0989
Problem: Various small code ugliness.
Solution: Remove pointless NULL checks. Fix function calls. Fix typos.
(Dominique Pelle, closes #4060)
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 347181011..47b27cf0e 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -6418,7 +6418,7 @@ mch_expand_wildcards( int shell_style = STYLE_ECHO; int check_spaces; static int did_find_nul = FALSE; - int ampersent = FALSE; + int ampersand = FALSE; /* vimglob() function to define for Posix shell */ static char *sh_vimglob_func = "vimglob() { while [ $# -ge 1 ]; do echo \"$1\"; shift; done }; vimglob >"; @@ -6535,7 +6535,7 @@ mch_expand_wildcards( --p; if (*p == '&') /* remove trailing '&' */ { - ampersent = TRUE; + ampersand = TRUE; *p = ' '; } STRCAT(command, ">"); @@ -6604,7 +6604,7 @@ mch_expand_wildcards( } if (flags & EW_SILENT) show_shell_mess = FALSE; - if (ampersent) + if (ampersand) STRCAT(command, "&"); /* put the '&' after the redirection */ /* @@ -6630,7 +6630,7 @@ mch_expand_wildcards( /* When running in the background, give it some time to create the temp * file, but don't wait for it to finish. */ - if (ampersent) + if (ampersand) mch_delay(10L, TRUE); extra_shell_arg = NULL; /* cleanup */ |