summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-11-24 13:26:26 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-11-24 13:26:42 +0000
commit35b89d5b8713b49a2b0475db4225e4852e6ed83a (patch)
treed1f6f6eca5358b34d1a2e66f673a1308a19c2a98 /src/input_handler.cc
parentdfed7ed211a7372b4c5610ea83aa9a3611bf20be (diff)
Display selection count in insert mode line
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index 71a5d63f..f1a77157 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -883,7 +883,9 @@ public:
DisplayLine mode_line() const override
{
- return { "insert", Face(Colors::Green) };
+ auto num_sel = context().selections().size();
+ return {AtomList{ { "insert ", Face(Colors::Green) },
+ { to_string(num_sel) + " sel", Face(Colors::Blue) } }};
}
KeymapMode keymap_mode() const override { return KeymapMode::Insert; }