diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-07-28 09:24:51 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-07-28 09:24:51 +0100 |
| commit | 74c3f101cd60e213962026f0bb0235102f7bc833 (patch) | |
| tree | 8dd94e6f0710940ced11a9e3e7be5faef9608d03 /src/normal.cc | |
| parent | b80dbf93229fca35230c2bb014d5ea36ba7a8dd9 (diff) | |
Use -1 for invalid codepoint, not 0
Diffstat (limited to 'src/normal.cc')
| -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 31afeb90..6927c291 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -924,8 +924,8 @@ void select_object(Context& context, NormalParams params) const int level = params.count <= 0 ? 0 : params.count - 1; on_next_key_with_autoinfo(context, KeymapMode::Object, [level](Key key, Context& context) { - auto cp = key.codepoint().value_or(Codepoint{0}); - if (cp == 0) + auto cp = key.codepoint().value_or((Codepoint)-1); + if (cp == -1) return; static constexpr struct |
