diff options
| author | Delapouite <delapouite@gmail.com> | 2018-03-29 22:46:24 +0200 |
|---|---|---|
| committer | Delapouite <delapouite@gmail.com> | 2018-03-29 22:54:03 +0200 |
| commit | 7f3a308b60367c28890c8519cfad5ebca4b6fb66 (patch) | |
| tree | 1f644ac6d586c49a28ff79bab1435fac366a9fdc /src/input_handler.cc | |
| parent | fab3dc642a980d52ac33ad5ff8bf746291e54370 (diff) | |
Add status message when commiting an undo group in insert mode
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 5 |
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, |
