fix last line handling in window display buffer

This commit is contained in:
Maxime Coste 2012-03-06 14:27:49 +00:00
parent 0ce3bc4621
commit c99a6a3e4c

View File

@ -108,7 +108,7 @@ void Window::update_display_buffer()
BufferIterator begin = buffer().iterator_at(m_position);
BufferIterator end = buffer().iterator_at(m_position +
BufferCoord(m_dimensions.line, m_dimensions.column))+1;
BufferCoord(m_dimensions.line, m_dimensions.column))+2;
if (begin == end)
return;