diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-11-16 21:03:32 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-11-16 21:03:32 +0000 |
| commit | a1a57ea1374196ce58eb792d253e22f1d2b2d1bd (patch) | |
| tree | d840e6e1c56edc7ef5f3f04ee28459444324d95e /src/display_buffer.cc | |
| parent | 10fa643bd24f845b003cb4435a966cb7ab73a6b0 (diff) | |
DisplayBuffer: fix DisplayAtom::iterator_at
Diffstat (limited to 'src/display_buffer.cc')
| -rw-r--r-- | src/display_buffer.cc | 4 |
1 files changed, 1 insertions, 3 deletions
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; } |
