summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-04-07 21:43:23 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-04-07 23:47:50 +0100
commita9b3a8b0d6b11d96773cb579d46e3ade1d5200e3 (patch)
tree19238f21e170001ee22cec3c634d88c511743b75 /src
parent2be90ce30a59cad2021f07e3b5921feb588b3063 (diff)
rename BufferManager::complete_buffername to complete_buffer_name
Diffstat (limited to 'src')
-rw-r--r--src/buffer_manager.cc4
-rw-r--r--src/buffer_manager.hh4
-rw-r--r--src/commands.cc2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/buffer_manager.cc b/src/buffer_manager.cc
index 4894dc65..88ed99a5 100644
--- a/src/buffer_manager.cc
+++ b/src/buffer_manager.cc
@@ -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, '/');
diff --git a/src/buffer_manager.hh b/src/buffer_manager.hh
index 01c30e81..97124a2c 100644
--- a/src/buffer_manager.hh
+++ b/src/buffer_manager.hh
@@ -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;
diff --git a/src/commands.cc b/src/commands.cc
index cf0c1142..6160f811 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -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{