diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-10-20 19:12:21 +0800 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-10-20 19:12:21 +0800 |
| commit | d6cb10d69356de53c5da08356959aec0f8b6fb35 (patch) | |
| tree | cfaada4665ca96f3d29e3f4ca6fcdf9dd554734d /src | |
| parent | f76535613e7ab93f92518169f64f7afa9ef1a141 (diff) | |
Disable constexpr keymap as it breaks compilation with gcc 5
Diffstat (limited to 'src')
| -rw-r--r-- | src/normal.cc | 4 |
1 files 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<typename T, MemoryDomain domain> -using KeymapBackend = ConstexprVector<T, 1024>; +using KeymapBackend = Vector<T, domain>; -static constexpr HashMap<Key, NormalCmd, MemoryDomain::Undefined, KeymapBackend> keymap = { +static const HashMap<Key, NormalCmd, MemoryDomain::Undefined, KeymapBackend> keymap = { { {'h'}, {"move left", move<CharCount, Backward>} }, { {'j'}, {"move down", move<LineCount, Forward>} }, { {'k'}, {"move up", move<LineCount, Backward>} }, |
