summaryrefslogtreecommitdiff
path: root/src/completion.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2011-11-12 14:06:49 +0000
committerMaxime Coste <frrrwww@gmail.com>2011-11-12 14:06:49 +0000
commitf5ad32f1373d68db7e9f3170f2a306c3c5195b8c (patch)
treebebe38bb7fd9c260920422af8d21d1a9a770208c /src/completion.cc
parent82baa55eed7f908a02b9b60260e0e5cd78a9ad4d (diff)
Completion: decentralise, move buffer name completion to BufferManager
Diffstat (limited to 'src/completion.cc')
-rw-r--r--src/completion.cc14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/completion.cc b/src/completion.cc
index 7e570def..936babaa 100644
--- a/src/completion.cc
+++ b/src/completion.cc
@@ -34,18 +34,4 @@ CandidateList complete_filename(const std::string& prefix,
return result;
}
-CandidateList complete_buffername(const std::string& prefix,
- size_t cursor_pos)
-{
- std::string real_prefix = prefix.substr(0, cursor_pos);
- CandidateList result;
- for (auto& buffer : BufferManager::instance())
- {
- if (buffer.name().substr(0, real_prefix.length()) == real_prefix)
- result.push_back(buffer.name());
- }
- return result;
-}
-
-
}