diff options
| author | Maxime Coste <mawww@kakoune.org> | 2021-09-30 20:43:02 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2021-09-30 20:43:02 +1000 |
| commit | 09f4ef0917e9174cc0d10a86b0272f5e5d655285 (patch) | |
| tree | e2a0c8e94bd2d0996e9ca2316eb20682f0e1e662 /src/normal.cc | |
| parent | 5f8753caec8b9aba8e9793dab972d80a2f222d60 (diff) | |
| parent | b3c62c3e0895b56fdd3af14e5653eb9d768cbc1f (diff) | |
Merge remote-tracking branch 'lenormf/fix-4353'
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/normal.cc b/src/normal.cc index d7222a13..2b996e3c 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -327,6 +327,8 @@ void goto_commands(Context& context, NormalParams params) select_coord<mode>(buffer, *pos, context.selections()); break; } + default: + throw runtime_error("key not mapped"); } }, (mode == SelectMode::Extend ? "goto (extend to)" : "goto"), build_autoinfo_for_mapping(context, KeymapMode::Goto, @@ -391,6 +393,8 @@ void view_commands(Context& context, NormalParams params) case 'l': window.scroll( std::max<ColumnCount>(1, count)); break; + default: + throw runtime_error("key not mapped"); } }, lock ? "view (lock)" : "view", build_autoinfo_for_mapping(context, KeymapMode::View, |
