diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-04-07 22:47:41 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-04-07 22:47:41 +0100 |
| commit | 3eca90f2b142e4b4b4430fa17534f137e0a89ec0 (patch) | |
| tree | 801f5e811583f6471945b60da93d2277ddd0af8b /src/file.hh | |
| parent | a8b2834d56d03777b219f62829cbf09c47e7603f (diff) | |
Only offer directories when completing :cd arguments
Refactor code in file.cc, avoid many double stat when searching
commands
Fixes #646
Diffstat (limited to 'src/file.hh')
| -rw-r--r-- | src/file.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file.hh b/src/file.hh index 9a17c2b1..29d979e3 100644 --- a/src/file.hh +++ b/src/file.hh @@ -83,7 +83,7 @@ constexpr bool operator!=(const timespec& lhs, const timespec& rhs) } CandidateList complete_filename(StringView prefix, const Regex& ignore_regex, - ByteCount cursor_pos = -1); + ByteCount cursor_pos = -1, bool only_dir = false); CandidateList complete_command(StringView prefix, ByteCount cursor_pos = -1); |
