aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-03-21 17:44:51 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-03-21 17:44:51 -0700
commite0e0bcdc1e952aa4fd6aaf2a7028eff85c272e30 (patch)
tree4621ccd1c29f50ca98f9cef2ac3d77fd4c580494 /complete.cpp
parent1ed8af2ee821a1c00aa5743a709060c5664fd684 (diff)
Update code formatting
Diffstat (limited to 'complete.cpp')
-rw-r--r--complete.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/complete.cpp b/complete.cpp
index 3cc82a2d..c80c8f10 100644
--- a/complete.cpp
+++ b/complete.cpp
@@ -345,26 +345,26 @@ class completer_t
/** Table of completions conditions that have already been tested and the corresponding test results */
typedef std::map<wcstring, bool> condition_cache_t;
condition_cache_t condition_cache;
-
+
enum complete_type_t
{
COMPLETE_DEFAULT,
COMPLETE_AUTOSUGGEST
};
-
+
complete_type_t type() const
{
return (flags & COMPLETION_REQUEST_AUTOSUGGESTION) ? COMPLETE_AUTOSUGGEST : COMPLETE_DEFAULT;
}
-
+
bool wants_descriptions() const
{
- return !! (flags & COMPLETION_REQUEST_DESCRIPTIONS);
+ return !!(flags & COMPLETION_REQUEST_DESCRIPTIONS);
}
-
+
bool fuzzy() const
{
- return !! (flags & COMPLETION_REQUEST_FUZZY_MATCH);
+ return !!(flags & COMPLETION_REQUEST_FUZZY_MATCH);
}
@@ -1794,7 +1794,6 @@ void complete(const wcstring &cmd, std::vector<completion_t> &comps, completion_
/* Make our completer */
completer_t completer(cmd, flags);
- const bool fuzzy = !! (flags & COMPLETION_REQUEST_FUZZY_MATCH);
const wchar_t *tok_begin, *tok_end, *cmdsubst_begin, *cmdsubst_end, *prev_begin, *prev_end;
wcstring current_token, prev_token;
wcstring current_command;