diff --git a/src/display_buffer.cc b/src/display_buffer.cc index dbae0e4f..44c09443 100644 --- a/src/display_buffer.cc +++ b/src/display_buffer.cc @@ -57,10 +57,8 @@ BufferIterator DisplayAtom::iterator_at(const DisplayCoord& coord) const else ++pos.column; - if (coord == pos) + if (coord <= pos) return it+1; - else if (coord < pos) - return it; } return m_end; }