Merge remote-tracking branch 'Delapouite/main_index'
This commit is contained in:
commit
d75a835ca1
|
@ -299,7 +299,14 @@ public:
|
||||||
|
|
||||||
DisplayLine mode_line() const override
|
DisplayLine mode_line() const override
|
||||||
{
|
{
|
||||||
AtomList atoms = { { to_string(context().selections().size()) + " sel", get_face("StatusLineInfo") } };
|
AtomList atoms;
|
||||||
|
auto num_sel = context().selections().size();
|
||||||
|
auto main_index = context().selections().main_index();
|
||||||
|
if (num_sel == 1)
|
||||||
|
atoms.emplace_back(format("{} sel", num_sel), get_face("StatusLineInfo"));
|
||||||
|
else
|
||||||
|
atoms.emplace_back(format("{} sels ({})", num_sel, main_index + 1), get_face("StatusLineInfo"));
|
||||||
|
|
||||||
if (m_params.count != 0)
|
if (m_params.count != 0)
|
||||||
{
|
{
|
||||||
atoms.emplace_back(" param=", get_face("StatusLineInfo"));
|
atoms.emplace_back(" param=", get_face("StatusLineInfo"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user