diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-13 20:19:02 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-13 20:19:02 -0700 |
commit | 129525af21d069943bb062e69a2a174e01a2c0e4 (patch) | |
tree | 012e32fbb55b3a13e211b0010066523f518c2546 /highlight.h | |
parent | c15975113ab80241c71dc6dfa41a470b232de4ce (diff) |
cd's special autosuggestion was broken, now fixed. Also, there's some tests for it now.
Diffstat (limited to 'highlight.h')
-rw-r--r-- | highlight.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/highlight.h b/highlight.h index 9efec419..11ed9e4f 100644 --- a/highlight.h +++ b/highlight.h @@ -115,6 +115,11 @@ bool autosuggest_special_validate_from_history(const wcstring &str, const wcstri */ bool autosuggest_suggest_special(const wcstring &str, const wcstring &working_directory, wcstring &outString); +/* Tests whether the specified string cpath is the prefix of anything we could cd to. directories is a list of possible parent directories (typically either the working directory, or the cdpath). This does I/O! + + This is used only internally to this file, and is exposed only for testing. +*/ +bool is_potential_path(const wcstring &const_path, const wcstring_list_t &directories, bool require_dir = false, wcstring *out_path = NULL); #endif |