rename BufferManager::complete_buffername to complete_buffer_name

This commit is contained in:
Maxime Coste 2014-04-07 21:43:23 +01:00
parent 2be90ce30a
commit a9b3a8b0d6
3 changed files with 5 additions and 5 deletions

View File

@ -95,7 +95,7 @@ void BufferManager::set_last_used_buffer(Buffer& buffer)
m_buffers.emplace(m_buffers.begin(), &buffer);
}
CandidateList BufferManager::complete_buffername(const String& prefix,
CandidateList BufferManager::complete_buffer_name(const String& prefix,
ByteCount cursor_pos)
{
String real_prefix = prefix.substr(0, cursor_pos);

View File

@ -33,7 +33,7 @@ public:
Buffer& get_buffer(const String& name);
void set_last_used_buffer(Buffer& buffer);
CandidateList complete_buffername(const String& prefix,
CandidateList complete_buffer_name(const String& prefix,
ByteCount cursor_pos = -1);
private:

View File

@ -96,7 +96,7 @@ const PerArgumentCommandCompleter filename_completer({
const PerArgumentCommandCompleter buffer_completer({
[](const Context& context, CompletionFlags flags, const String& prefix, ByteCount cursor_pos)
{ return Completions{ 0_byte, prefix.length(),
BufferManager::instance().complete_buffername(prefix, cursor_pos) }; }
BufferManager::instance().complete_buffer_name(prefix, cursor_pos) }; }
});
const ParameterDesc no_params{