diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2021-09-15 09:20:53 +0300 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2021-09-15 09:20:53 +0300 |
| commit | b3c62c3e0895b56fdd3af14e5653eb9d768cbc1f (patch) | |
| tree | 44875a701bc2e3efbe823fd2133ff2a58dc821fc /src/normal.cc | |
| parent | b3a1017a264cfea7e9ae1a374208e9b02efbda5a (diff) | |
src: Error out on unmapped key in `g` and `v`
Fixes #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 cba92d0e..c4fd192b 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, |
