escape-key force return to normal mode

This commit is contained in:
Maxime Coste 2011-10-03 18:41:05 +00:00
parent 945426f47a
commit 4f771b084a

View File

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