mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-24 07:53:41 +03:00
DisplayBuffer: fix DisplayAtom::iterator_at
This commit is contained in:
parent
10fa643bd2
commit
a1a57ea137
@ -57,10 +57,8 @@ BufferIterator DisplayAtom::iterator_at(const DisplayCoord& coord) const
|
|||||||
else
|
else
|
||||||
++pos.column;
|
++pos.column;
|
||||||
|
|
||||||
if (coord == pos)
|
if (coord <= pos)
|
||||||
return it+1;
|
return it+1;
|
||||||
else if (coord < pos)
|
|
||||||
return it;
|
|
||||||
}
|
}
|
||||||
return m_end;
|
return m_end;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user