diff --git a/src/input_handler.cc b/src/input_handler.cc index 2a6a8b68..19fd0efd 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -1002,6 +1002,11 @@ public: last_insert().disable_hooks = context().hooks_disabled(); context().hooks().run_hook("InsertBegin", "", context()); prepare(m_insert_mode, count); + + if (context().has_client() and + context().options()["readonly"].get()) + context().print_status({ "Entering insert mode while readonly", + get_face("Information") }); } ~Insert()