summaryrefslogtreecommitdiff
path: root/src/buffer_manager.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-10-11 00:41:48 +0200
committerMaxime Coste <frrrwww@gmail.com>2012-10-11 00:41:48 +0200
commit0ce6bd9bf54332d9eed8c7462ab4dfe08f8fac95 (patch)
tree662591856f7227e3fb8592d582edaf2766a3f3e6 /src/buffer_manager.cc
parent571861bc7bbe10bf831b861f7e6e0a2aa0a40839 (diff)
use ByteCount instead of CharCount when we are really counting bytes
(that is most of the time when we are not concerned with displaying)
Diffstat (limited to 'src/buffer_manager.cc')
-rw-r--r--src/buffer_manager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer_manager.cc b/src/buffer_manager.cc
index d2f7857f..764e1271 100644
--- a/src/buffer_manager.cc
+++ b/src/buffer_manager.cc
@@ -63,7 +63,7 @@ void BufferManager::set_last_used_buffer(Buffer& buffer)
}
CandidateList BufferManager::complete_buffername(const String& prefix,
- CharCount cursor_pos)
+ ByteCount cursor_pos)
{
String real_prefix = prefix.substr(0, cursor_pos);
CandidateList result;