From 7f3a308b60367c28890c8519cfad5ebca4b6fb66 Mon Sep 17 00:00:00 2001 From: Delapouite Date: Thu, 29 Mar 2018 22:46:24 +0200 Subject: [PATCH] Add status message when commiting an undo group in insert mode --- src/input_handler.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/input_handler.cc b/src/input_handler.cc index 7f7a26ba..3b80d4ee 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -1240,7 +1240,12 @@ public: m_completer.reset(); } else if (key == ctrl('u')) + { context().buffer().commit_undo_group(); + context().print_status({ format("committed change #{}", + context().buffer().current_history_id()), + get_face("Information") }); + } else if (key == ctrl('v')) { on_next_key_with_autoinfo(context(), KeymapMode::None,