diff options
Diffstat (limited to 'src/file.cc')
| -rw-r--r-- | src/file.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file.cc b/src/file.cc index c5f60c1b..d8595763 100644 --- a/src/file.cc +++ b/src/file.cc @@ -457,7 +457,7 @@ CandidateList complete_command(StringView prefix, ByteCount cursor_pos) if (not dirname.empty()) { - auto filter = [&dirname](const dirent& entry, const struct stat& st) + auto filter = [](const dirent& entry, const struct stat& st) { bool executable = (st.st_mode & S_IXUSR) | (st.st_mode & S_IXGRP) @@ -496,7 +496,7 @@ CandidateList complete_command(StringView prefix, ByteCount cursor_pos) auto& cache = command_cache[dirname]; if (memcmp(&cache.mtim, &st.st_mtim, sizeof(TimeSpec)) != 0) { - auto filter = [&dirname](const dirent& entry, const struct stat& st) { + auto filter = [](const dirent& entry, const struct stat& st) { bool executable = (st.st_mode & S_IXUSR) | (st.st_mode & S_IXGRP) | (st.st_mode & S_IXOTH); |
