summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2021-09-30 20:43:02 +1000
committerMaxime Coste <mawww@kakoune.org>2021-09-30 20:43:02 +1000
commit09f4ef0917e9174cc0d10a86b0272f5e5d655285 (patch)
treee2a0c8e94bd2d0996e9ca2316eb20682f0e1e662 /src/normal.cc
parent5f8753caec8b9aba8e9793dab972d80a2f222d60 (diff)
parentb3c62c3e0895b56fdd3af14e5653eb9d768cbc1f (diff)
Merge remote-tracking branch 'lenormf/fix-4353'
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc4
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,