summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-03-30 09:19:56 +1100
committerMaxime Coste <mawww@kakoune.org>2018-03-30 09:19:56 +1100
commit31adbb5a936fef97bcbea23c98fec4bf7a300fad (patch)
tree04dd9cdfe4c3bbc1e6e598e3619733c3347a0183
parent4a2125f75200d9bf082c44aa71ea7c05490e186a (diff)
parent7f3a308b60367c28890c8519cfad5ebca4b6fb66 (diff)
Merge remote-tracking branch 'Delapouite/ctrl-u'
-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,