aboutsummaryrefslogtreecommitdiffhomepage
path: root/wildcard.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-05-25 15:41:18 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-05-25 15:41:18 -0700
commit908b07527ed5fe4952f357db73e270da9d09baba (patch)
tree53df9b5a78c5a43235aa0a2b0ec42d36a0cab8b9 /wildcard.h
parentee7339b66102c0a183b6cf37dbee83c5de6f4d91 (diff)
Support for fuzzy completions
Diffstat (limited to 'wildcard.h')
-rw-r--r--wildcard.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/wildcard.h b/wildcard.h
index 425b7bee..5a3e291a 100644
--- a/wildcard.h
+++ b/wildcard.h
@@ -18,6 +18,7 @@
#include "util.h"
#include "common.h"
#include "expand.h"
+#include "complete.h"
/*
Use unencoded private-use keycodes for internal characters
@@ -79,10 +80,8 @@ int wildcard_expand_string(const wcstring &wc, const wcstring &base_dir, expand_
bool wildcard_match(const wcstring &str, const wcstring &wc, bool leading_dots_fail_to_match = false);
-/**
- Check if the specified string contains wildcards
-*/
-int wildcard_has(const wchar_t *str, int internal);
+/** Check if the specified string contains wildcards */
+bool wildcard_has(const wchar_t *str, bool internal);
/**
Test wildcard completion
@@ -92,6 +91,7 @@ bool wildcard_complete(const wcstring &str,
const wchar_t *desc,
wcstring(*desc_func)(const wcstring &),
std::vector<completion_t> &out,
- expand_flags_t flags);
+ expand_flags_t expand_flags,
+ complete_flags_t flags);
#endif