Window: fix status_line cursor position

This commit is contained in:
Maxime Coste 2011-10-18 13:49:10 +00:00
parent c7876f0ba3
commit 6fd7f97fa7

View File

@ -369,7 +369,7 @@ void Window::scroll_to_keep_cursor_visible_ifn()
std::string Window::status_line() const 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; std::ostringstream oss;
oss << m_buffer.name(); oss << m_buffer.name();
if (m_buffer.is_modified()) if (m_buffer.is_modified())