escape-key force return to normal mode
This commit is contained in:
parent
945426f47a
commit
4f771b084a
|
@ -485,6 +485,7 @@ std::unordered_map<char, std::function<void (Window& window, int count)>> keymap
|
|||
|
||||
{ 'v', [](Window& window, int count) { window.set_select_mode(window.select_mode() == Window::SelectMode::Append ?
|
||||
Window::SelectMode::Normal : Window::SelectMode::Append); } },
|
||||
{ 27, [](Window& window, int count) { window.set_select_mode(Window::SelectMode::Normal); } },
|
||||
|
||||
{ '%', [](Window& window, int count) { window.select([](const BufferIterator& cursor)
|
||||
{ return Selection(cursor.buffer().begin(), cursor.buffer().end()-1); }); } },
|
||||
|
|
Loading…
Reference in New Issue
Block a user