From 307fc228d2f702e94dbb94dcb74330eeee037bc1 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 2 Oct 2013 18:45:39 +0100 Subject: [PATCH] Add in insert mode for forcing commiting the current undo group --- src/client.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.cc b/src/client.cc index f43203bb3..6096844d5 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);