summaryrefslogtreecommitdiff
path: root/src/window.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-12-28 13:53:00 +0100
committerMaxime Coste <frrrwww@gmail.com>2012-12-28 13:53:00 +0100
commit28cf772debe6fb8eeb9d23dcb5fd56285e708583 (patch)
tree5a836d70d7425e9441ca64e472a3a1f5d22ad357 /src/window.cc
parent9531fd591550bd3b5cab13e1430247f4e448d3d0 (diff)
tweak window status line format
Diffstat (limited to 'src/window.cc')
-rw-r--r--src/window.cc10
1 files 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();
}