diff options
| author | Delapouite <delapouite@gmail.com> | 2017-09-27 18:47:37 +0200 |
|---|---|---|
| committer | Delapouite <delapouite@gmail.com> | 2017-09-27 18:47:37 +0200 |
| commit | c7c8c145618ec017f85a6e0dd0903e59dcb48bb4 (patch) | |
| tree | d399c88df3d77902de01d4e3169e257af85e2ac4 /src/input_handler.cc | |
| parent | 76f072a786c84195bd04e65afd76ccc01da8b69b (diff) | |
Display selections count in insert mode the same it's displayed in normal mode
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 6 |
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; } |
