summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();
}