parent
e5e12d9a46
commit
3b5b781c5d
|
@ -231,9 +231,16 @@ public:
|
||||||
else if (key == '"')
|
else if (key == '"')
|
||||||
{
|
{
|
||||||
on_next_key_with_autoinfo(context(), KeymapMode::None,
|
on_next_key_with_autoinfo(context(), KeymapMode::None,
|
||||||
[this](Key key, Context&) {
|
[this](Key key, Context& context) {
|
||||||
if (auto cp = key.codepoint())
|
if (auto cp = key.codepoint())
|
||||||
m_params.reg = *cp;
|
{
|
||||||
|
if (*cp <= 127)
|
||||||
|
m_params.reg = *cp;
|
||||||
|
else
|
||||||
|
context.print_status(
|
||||||
|
{ format("invalid register '{}'", *cp),
|
||||||
|
get_face("Error") });
|
||||||
|
}
|
||||||
}, "Enter target register", register_doc);
|
}, "Enter target register", register_doc);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user