Small code style tweak
This commit is contained in:
parent
002e77534f
commit
3a5bb051a8
|
@ -1121,9 +1121,9 @@ void select_object(Context& context, NormalParams params)
|
||||||
const int count = params.count <= 0 ? 0 : params.count - 1;
|
const int count = params.count <= 0 ? 0 : params.count - 1;
|
||||||
on_next_key_with_autoinfo(context, KeymapMode::Object,
|
on_next_key_with_autoinfo(context, KeymapMode::Object,
|
||||||
[count](Key key, Context& context) {
|
[count](Key key, Context& context) {
|
||||||
auto cp = key.codepoint().value_or((Codepoint)-1);
|
if (not key.codepoint() or key == Key::Escape)
|
||||||
if (cp == -1 or key == Key::Escape)
|
|
||||||
return;
|
return;
|
||||||
|
const auto cp = *key.codepoint();
|
||||||
|
|
||||||
static constexpr struct ObjectType
|
static constexpr struct ObjectType
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user