From c99a6a3e4cf69734e51f250a8b0143921730f2d0 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 6 Mar 2012 14:27:49 +0000 Subject: [PATCH] fix last line handling in window display buffer --- src/window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.cc b/src/window.cc index 49eb6c0b..a6a1e0dc 100644 --- a/src/window.cc +++ b/src/window.cc @@ -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;