From 35b89d5b8713b49a2b0475db4225e4852e6ed83a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 24 Nov 2014 13:26:26 +0000 Subject: [PATCH] Display selection count in insert mode line --- src/input_handler.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }