From a1a57ea1374196ce58eb792d253e22f1d2b2d1bd Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 16 Nov 2011 21:03:32 +0000 Subject: [PATCH] DisplayBuffer: fix DisplayAtom::iterator_at --- src/display_buffer.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/display_buffer.cc b/src/display_buffer.cc index dbae0e4f6..44c094432 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; }