rename BufferManager::complete_buffername to complete_buffer_name
This commit is contained in:
parent
2be90ce30a
commit
a9b3a8b0d6
|
@ -95,8 +95,8 @@ void BufferManager::set_last_used_buffer(Buffer& buffer)
|
|||
m_buffers.emplace(m_buffers.begin(), &buffer);
|
||||
}
|
||||
|
||||
CandidateList BufferManager::complete_buffername(const String& prefix,
|
||||
ByteCount cursor_pos)
|
||||
CandidateList BufferManager::complete_buffer_name(const String& prefix,
|
||||
ByteCount cursor_pos)
|
||||
{
|
||||
String real_prefix = prefix.substr(0, cursor_pos);
|
||||
const bool include_dirs = contains(real_prefix, '/');
|
||||
|
|
|
@ -33,8 +33,8 @@ public:
|
|||
Buffer& get_buffer(const String& name);
|
||||
void set_last_used_buffer(Buffer& buffer);
|
||||
|
||||
CandidateList complete_buffername(const String& prefix,
|
||||
ByteCount cursor_pos = -1);
|
||||
CandidateList complete_buffer_name(const String& prefix,
|
||||
ByteCount cursor_pos = -1);
|
||||
|
||||
private:
|
||||
BufferList m_buffers;
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue
Block a user