diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-09-24 22:01:33 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-09-24 22:06:43 -0700 |
commit | 316d7004a3d4f6905f36301b6d5c9ebd934f11fa (patch) | |
tree | f631fe6cd81f6d07ca755f812c73c6b3923e4d02 /wildcard.h | |
parent | 1096b1acd508aa9752d4fb6b8286b2b61cd8df1a (diff) |
Prepend ./ to "flag-like file" wildcard expansions and completions
If a wildcard or completion expands to a file that begins with
one or more dashes, prepend a ./ to it so that it doesn't get
parsed as an option.
Fixes #1519
Diffstat (limited to 'wildcard.h')
-rw-r--r-- | wildcard.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -84,7 +84,9 @@ bool wildcard_has(const wcstring &, bool internal); bool wildcard_has(const wchar_t *, bool internal); /** - Test wildcard completion + Matches the string against the wildcard, and if the wildcard is a + possible completion of the string, the remainder of the string is + inserted into the out vector. */ bool wildcard_complete(const wcstring &str, const wchar_t *wc, |