1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-28 01:00:28 +03:00

DisplayBuffer: fix DisplayAtom::iterator_at

This commit is contained in:
Maxime Coste 2011-11-16 21:03:32 +00:00
parent 10fa643bd2
commit a1a57ea137

View File

@ -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;
}