diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-10-18 13:49:10 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-10-18 13:49:10 +0000 |
| commit | 6fd7f97fa74b5b613dff20d67e0604a01a8dee47 (patch) | |
| tree | 65fbe028dbddb393a3c4ace0a39dcafe3a7c37f1 /src/window.cc | |
| parent | c7876f0ba3da1ea4e5202b824f0e9db5e8702249 (diff) | |
Window: fix status_line cursor position
Diffstat (limited to 'src/window.cc')
| -rw-r--r-- | src/window.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |
