Display selections count in insert mode the same it's displayed in normal mode
This commit is contained in:
parent
76f072a786
commit
c7c8c14561
|
@ -1256,8 +1256,10 @@ public:
|
||||||
DisplayLine mode_line() const override
|
DisplayLine mode_line() const override
|
||||||
{
|
{
|
||||||
auto num_sel = context().selections().size();
|
auto num_sel = context().selections().size();
|
||||||
return {AtomList{ { "insert ", get_face("StatusLineMode") },
|
auto main_index = context().selections().main_index();
|
||||||
{ format( "{} sel", num_sel), get_face("StatusLineInfo") } }};
|
return {AtomList{ { "insert", get_face("StatusLineMode") },
|
||||||
|
{ " ", get_face("StatusLine") },
|
||||||
|
{ format( "{} sels ({})", num_sel, main_index + 1), get_face("StatusLineInfo") } }};
|
||||||
}
|
}
|
||||||
|
|
||||||
KeymapMode keymap_mode() const override { return KeymapMode::Insert; }
|
KeymapMode keymap_mode() const override { return KeymapMode::Insert; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user