edit command: when a line is specified ask the window to center it

This commit is contained in:
Maxime Coste 2012-08-21 20:08:57 +02:00
parent 26313a3f68
commit 05098a373a

View File

@ -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);