Add <c-u> in insert mode for forcing commiting the current undo group

This commit is contained in:
Maxime Coste 2013-10-02 18:45:39 +01:00
parent bc051c53af
commit 307fc228d2

View File

@ -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);