From 05098a373ad665372d4b1e656ebc60a5bed8c6e3 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 21 Aug 2012 20:08:57 +0200 Subject: [PATCH] edit command: when a line is specified ask the window to center it --- src/commands.cc | 1 + 1 file changed, 1 insertion(+) 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);