summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc6
1 files 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; }