diff --git a/src/commands.cc b/src/commands.cc index 1bdef0ca..c17dd0a9 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -260,6 +260,7 @@ void edit(const CommandParameters& params, Context& context) std::max(0, str_to_int(parser[2]) - 1) : 0; window.select(window.buffer().iterator_at({line, column})); + window.center_selection(); } context.change_editor(window);