Display selection count in insert mode line

This commit is contained in:
Maxime Coste 2014-11-24 13:26:26 +00:00
parent dfed7ed211
commit 35b89d5b87

View File

@ -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; }