summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDelapouite <delapouite@gmail.com>2018-03-29 22:46:24 +0200
committerDelapouite <delapouite@gmail.com>2018-03-29 22:54:03 +0200
commit7f3a308b60367c28890c8519cfad5ebca4b6fb66 (patch)
tree1f644ac6d586c49a28ff79bab1435fac366a9fdc
parentfab3dc642a980d52ac33ad5ff8bf746291e54370 (diff)
Add status message when commiting an undo group in insert mode
-rw-r--r--src/input_handler.cc5
1 files changed, 5 insertions, 0 deletions
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,