From 28cf772debe6fb8eeb9d23dcb5fd56285e708583 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 28 Dec 2012 13:53:00 +0100 Subject: [PATCH] tweak window status line format --- src/window.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/window.cc b/src/window.cc index ff8a06ca..e2b51b30 100644 --- a/src/window.cc +++ b/src/window.cc @@ -163,13 +163,15 @@ String Window::status_line() const { BufferCoord cursor = selections().back().last().coord(); std::ostringstream oss; - oss << buffer().name(); + oss << buffer().name() + << " " << (int)cursor.line+1 << "," << (int)cursor.column+1; if (buffer().is_modified()) oss << " [+]"; - oss << " -- " << (int)cursor.line+1 << "," << (int)cursor.column+1 - << " -- " << selections().size() << " sel -- "; + if (buffer().flags() & Buffer::Flags::New) + oss << " [new file]"; + oss << " [" << selections().size() << " sel]"; if (is_editing()) - oss << "[Insert]"; + oss << " [insert]"; return oss.str(); }