From 4f771b084a20758df20d36aea4e62c964f8fc6a0 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 3 Oct 2011 18:41:05 +0000 Subject: [PATCH] escape-key force return to normal mode --- src/main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cc b/src/main.cc index 866bd50f7..f71657026 100644 --- a/src/main.cc +++ b/src/main.cc @@ -485,6 +485,7 @@ std::unordered_map> 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); }); } },