aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorKillTheMule <KillTheMule@users.noreply.github.com>2016-05-01 21:06:47 +0200
committerKillTheMule <KillTheMule@users.noreply.github.com>2016-05-02 21:10:50 +0200
commit3e1ca9a2db2e2bbc05150e54a2625c1c56fb071e (patch)
treea91288e3142c9248960ff0a22370397978e17b68 /src/nvim/ex_getln.c
parent00c35ab3b4d8498c82776525de7b1afcd7b3424a (diff)
downloadrneovim-3e1ca9a2db2e2bbc05150e54a2625c1c56fb071e.tar.gz
rneovim-3e1ca9a2db2e2bbc05150e54a2625c1c56fb071e.tar.bz2
rneovim-3e1ca9a2db2e2bbc05150e54a2625c1c56fb071e.zip
Linting.
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 1a410759a3..a4e5a4dcd7 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -4017,20 +4017,19 @@ static void expand_shellcmd(char_u *filepat, int *num_file, char_u ***file,
*/
ga_init(&ga, (int)sizeof(char *), 10);
for (s = path; ; s = e) {
- if (*s == NUL)
- {
- if (did_curdir) {
- break;
- }
- // Find directories in the current directory, path is empty.
- did_curdir = true;
- }
- else if (*s == '.') {
- did_curdir = true;
+ if (*s == NUL) {
+ if (did_curdir) {
+ break;
+ }
+ // Find directories in the current directory, path is empty.
+ did_curdir = true;
+ } else if (*s == '.') {
+ did_curdir = true;
}
- if (*s == ' ')
- ++s; /* Skip space used for absolute path name. */
+ if (*s == ' ') {
+ s++; // Skip space used for absolute path name.
+ }
e = vim_strchr(s, ':');
if (e == NULL)