diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-06-15 17:43:18 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-06-15 17:43:18 +0100 |
| commit | fa4b88c2f8556ad736dab3af3629715ba41cf3bc (patch) | |
| tree | 3e227cfd8007c6f79bd7a9222b47a7cdcf34bdc2 /src/buffer.cc | |
| parent | 01a1e92b79e6bbebaf4b3896697ec1aebe5a9a8a (diff) | |
Move tolerance for one past end of line coordinates to highlighter code
The rest of Kakoune's code now requires coord passed to Buffer::iterator_at
to be valid.
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index 3e4c7e5e..0598319d 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -166,10 +166,6 @@ void Buffer::update_display_name() BufferIterator Buffer::iterator_at(BufferCoord coord) const { - // Tolerate one past the end of line - if (not is_end(coord) and coord.column == m_lines[coord.line].length()) - coord = coord.line+1; - kak_assert(is_valid(coord)); return {*this, coord}; } |
