diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-11-10 20:57:25 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-11-10 20:57:25 +0000 |
| commit | 82baa55eed7f908a02b9b60260e0e5cd78a9ad4d (patch) | |
| tree | 7e63a745ee14c11b570329d9efa192da449cc6ab /src/completion.hh | |
| parent | 9bba47bd30a33cb6990903e5c88515d24397e618 (diff) | |
Completions: change NullCompletion functor to complete_nothing function
Diffstat (limited to 'src/completion.hh')
| -rw-r--r-- | src/completion.hh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/completion.hh b/src/completion.hh index e4fe8062..ca325155 100644 --- a/src/completion.hh +++ b/src/completion.hh @@ -31,13 +31,11 @@ CandidateList complete_buffername(const std::string& prefix, typedef std::function<Completions (const std::string&, size_t)> Completer; -struct NullCompletion + +inline Completions complete_nothing(const std::string&, size_t cursor_pos) { - Completions operator() (const std::string&, size_t cursor_pos) - { - return Completions(cursor_pos, cursor_pos); - } -}; + return Completions(cursor_pos, cursor_pos); +} } #endif // completion_hh_INCLUDED |
