summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 91aedfeb..45cc8638 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -201,6 +201,8 @@ void view_commands(Context& context)
void replace_with_char(Context& context)
{
context.input_handler().on_next_key([](const Key& key, Context& context) {
+ if (not isprint(key.key))
+ return;
Editor& editor = context.editor();
SelectionList sels = editor.selections();
auto restore_sels = on_scope_end([&]{ editor.select(std::move(sels)); });