From c7c8c145618ec017f85a6e0dd0903e59dcb48bb4 Mon Sep 17 00:00:00 2001 From: Delapouite Date: Wed, 27 Sep 2017 18:47:37 +0200 Subject: [PATCH] Display selections count in insert mode the same it's displayed in normal mode --- src/input_handler.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/input_handler.cc b/src/input_handler.cc index 65330487..df9186ae 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -1256,8 +1256,10 @@ public: DisplayLine mode_line() const override { auto num_sel = context().selections().size(); - return {AtomList{ { "insert ", get_face("StatusLineMode") }, - { format( "{} sel", num_sel), get_face("StatusLineInfo") } }}; + auto main_index = context().selections().main_index(); + 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; }