Add <c-u> in insert mode for forcing commiting the current undo group
This commit is contained in:
parent
bc051c53af
commit
307fc228d2
|
@ -889,6 +889,8 @@ public:
|
||||||
}
|
}
|
||||||
else if ( key == Key{ Key::Modifiers::Control, 'x' })
|
else if ( key == Key{ Key::Modifiers::Control, 'x' })
|
||||||
m_mode = Mode::Complete;
|
m_mode = Mode::Complete;
|
||||||
|
else if ( key == Key{ Key::Modifiers::Control, 'u' })
|
||||||
|
context().buffer().commit_undo_group();
|
||||||
|
|
||||||
if (update_completions)
|
if (update_completions)
|
||||||
m_idle_timer.set_next_date(Clock::now() + idle_timeout);
|
m_idle_timer.set_next_date(Clock::now() + idle_timeout);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user