diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-11-23 12:30:24 +0800 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-11-23 12:30:24 +0800 |
| commit | c0cec3e7c19b14ea4fe278262200309fc33f7723 (patch) | |
| tree | b8b09d2fcfb1e998d8fa8a77cd5d4d12a045fac3 /src/file.cc | |
| parent | 179a1f6aa1eca17c12bdbc06eb63a7b76a6f304d (diff) | |
| parent | 66ca53466f70d566644a8d12aa24055105c2977b (diff) | |
Merge remote-tracking branch 'fsub/warnings'
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); |
