From d6cb10d69356de53c5da08356959aec0f8b6fb35 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 20 Oct 2017 19:12:21 +0800 Subject: [PATCH] Disable constexpr keymap as it breaks compilation with gcc 5 --- src/normal.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/normal.cc b/src/normal.cc index 77bd3bdf..3ad6a89b 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1944,9 +1944,9 @@ void force_redraw(Context& context, NormalParams) } template -using KeymapBackend = ConstexprVector; +using KeymapBackend = Vector; -static constexpr HashMap keymap = { +static const HashMap keymap = { { {'h'}, {"move left", move} }, { {'j'}, {"move down", move} }, { {'k'}, {"move up", move} },