1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-23 23:34:12 +03:00

Merge remote-tracking branch 'arachsys/master'

This commit is contained in:
Maxime Coste 2021-12-12 09:29:40 +11:00
commit 513753a2ec

View File

@ -1443,8 +1443,9 @@ public:
auto main_index = context().selections().main_index();
return {AtomList{ { "insert", context().faces()["StatusLineMode"] },
{ " ", context().faces()["StatusLine"] },
{ format( "{} sels ({})", num_sel, main_index + 1),
context().faces()["StatusLineInfo"] } }};
{ num_sel == 1 ? format("{} sel", num_sel)
: format("{} sels ({})", num_sel, main_index + 1),
context().faces()["StatusLineInfo"] } }};
}
KeymapMode keymap_mode() const override { return KeymapMode::Insert; }