aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/file_search.c
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-10-12 14:53:40 +0100
committerGitHub <noreply@github.com>2022-10-12 14:53:40 +0100
commit0ef6aaa3a73d5089bf53e804364950c81784574c (patch)
treeb74efe8683f2a6a8257ed31725244d749d229274 /src/nvim/file_search.c
parent024f6880b5e0f7b6d968f4f709f8ca6e7ab567c7 (diff)
downloadrneovim-0ef6aaa3a73d5089bf53e804364950c81784574c.tar.gz
rneovim-0ef6aaa3a73d5089bf53e804364950c81784574c.tar.bz2
rneovim-0ef6aaa3a73d5089bf53e804364950c81784574c.zip
refactor: clint (#20600)
Diffstat (limited to 'src/nvim/file_search.c')
-rw-r--r--src/nvim/file_search.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c
index d9adf84acc..c41916d40a 100644
--- a/src/nvim/file_search.c
+++ b/src/nvim/file_search.c
@@ -308,7 +308,7 @@ void *vim_findfile_init(char *path, char *filename, char *stopdirs, int level, i
goto error_return;
}
path += 2;
- } else
+ } else // NOLINT(readability/braces)
#endif
if (os_dirname((char_u *)ff_expand_buffer, MAXPATHL) == FAIL) {
goto error_return;
@@ -619,16 +619,15 @@ char_u *vim_findfile(void *search_ctx_arg)
#endif
ff_free_stack_element(stackp);
continue;
- }
#ifdef FF_VERBOSE
- else if (p_verbose >= 5) {
+ } else if (p_verbose >= 5) {
verbose_enter_scroll();
smsg("Searching: %s (%s)",
stackp->ffs_fix_path, stackp->ffs_wc_path);
msg_puts("\n"); // don't overwrite this either
verbose_leave_scroll();
- }
#endif
+ }
// check depth
if (stackp->ffs_level <= 0) {