summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-05-29 18:39:22 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-05-30 13:59:38 +0200
commitae947b456d30600cee92511f94a3d1b49ac190b1 (patch)
treeff0ea36f6af8c89798d42bfeffc0e78162862b8a /src/input_handler.cc
parentdbb1c57ec9881ded9d0bef4620381b034226fa49 (diff)
remove BufferIterator::offset
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index 1d98120d..2752157f 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -605,7 +605,7 @@ public:
BufferIterator begin{buffer, m_completions.begin};
for (auto& sel : m_context.editor().selections())
{
- auto offset = sel.last().offset();
+ auto offset = buffer.offset(sel.last());
if (offset > beg_offset and offset + end_offset < buffer_len and
std::equal(sel.last() - beg_offset, sel.last(), begin))
{