Small code style tweak

This commit is contained in:
Maxime Coste 2017-09-23 13:18:00 +09:00
parent 002e77534f
commit 3a5bb051a8

View File

@ -1121,9 +1121,9 @@ void select_object(Context& context, NormalParams params)
const int count = params.count <= 0 ? 0 : params.count - 1;
on_next_key_with_autoinfo(context, KeymapMode::Object,
[count](Key key, Context& context) {
auto cp = key.codepoint().value_or((Codepoint)-1);
if (cp == -1 or key == Key::Escape)
if (not key.codepoint() or key == Key::Escape)
return;
const auto cp = *key.codepoint();
static constexpr struct ObjectType
{