From 6fd7f97fa74b5b613dff20d67e0604a01a8dee47 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 18 Oct 2011 13:49:10 +0000 Subject: [PATCH] Window: fix status_line cursor position --- src/window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.cc b/src/window.cc index 39676066..76eabce2 100644 --- a/src/window.cc +++ b/src/window.cc @@ -369,7 +369,7 @@ void Window::scroll_to_keep_cursor_visible_ifn() std::string Window::status_line() const { - BufferCoord cursor = m_buffer.line_and_column_at(m_selections.back().end()); + BufferCoord cursor = m_buffer.line_and_column_at(m_selections.back().last()); std::ostringstream oss; oss << m_buffer.name(); if (m_buffer.is_modified())