From fa4b88c2f8556ad736dab3af3629715ba41cf3bc Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 15 Jun 2017 17:43:18 +0100 Subject: 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. --- src/buffer.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/buffer.cc') 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}; } -- cgit v1.2.3