summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-05-30 18:52:03 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-05-30 18:52:03 +0200
commit8ddeb141c83b4ff7ca073707f807fab087fb35b3 (patch)
tree395f3c4643083045a2f2376b37609d0b5756929c /src/input_handler.cc
parent2d96f853f8ba7de76cc6f5c5bc019369eddc9fa9 (diff)
Fix insert completion at beginning of buffer
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 5eae8db4..d76d3b14 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -610,7 +610,7 @@ public:
for (auto& sel : m_context.editor().selections())
{
auto offset = buffer.offset(sel.last());
- if (offset > beg_offset and offset + end_offset < buffer_len and
+ if (offset >= beg_offset and offset + end_offset < buffer_len and
std::equal(sel.last() - beg_offset, sel.last(), begin))
{
buffer.erase(sel.last() - beg_offset, sel.last() + end_offset);