edit command: when a line is specified ask the window to center it
This commit is contained in:
parent
26313a3f68
commit
05098a373a
|
@ -260,6 +260,7 @@ void edit(const CommandParameters& params, Context& context)
|
||||||
std::max(0, str_to_int(parser[2]) - 1) : 0;
|
std::max(0, str_to_int(parser[2]) - 1) : 0;
|
||||||
|
|
||||||
window.select(window.buffer().iterator_at({line, column}));
|
window.select(window.buffer().iterator_at({line, column}));
|
||||||
|
window.center_selection();
|
||||||
}
|
}
|
||||||
|
|
||||||
context.change_editor(window);
|
context.change_editor(window);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user