Display selections count in insert mode the same it's displayed in normal mode

This commit is contained in:
Delapouite 2017-09-27 18:47:37 +02:00
parent 76f072a786
commit c7c8c14561

View File

@ -1256,8 +1256,10 @@ public:
DisplayLine mode_line() const override
{
auto num_sel = context().selections().size();
auto main_index = context().selections().main_index();
return {AtomList{ { "insert", get_face("StatusLineMode") },
{ format( "{} sel", num_sel), get_face("StatusLineInfo") } }};
{ " ", get_face("StatusLine") },
{ format( "{} sels ({})", num_sel, main_index + 1), get_face("StatusLineInfo") } }};
}
KeymapMode keymap_mode() const override { return KeymapMode::Insert; }