diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-10-02 18:45:39 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-10-02 18:45:39 +0100 |
| commit | 307fc228d2f702e94dbb94dcb74330eeee037bc1 (patch) | |
| tree | af39c9268cda43463d729813186af3457a4bd533 /src | |
| parent | bc051c53afbffeec207b3f40c52f65e28487717e (diff) | |
Add <c-u> in insert mode for forcing commiting the current undo group
Diffstat (limited to 'src')
| -rw-r--r-- | src/client.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.cc b/src/client.cc index f43203bb..6096844d 100644 --- a/src/client.cc +++ b/src/client.cc @@ -889,6 +889,8 @@ public: } else if ( key == Key{ Key::Modifiers::Control, 'x' }) m_mode = Mode::Complete; + else if ( key == Key{ Key::Modifiers::Control, 'u' }) + context().buffer().commit_undo_group(); if (update_completions) m_idle_timer.set_next_date(Clock::now() + idle_timeout); |
