From 4e3d551426d840eb10f8ba0ac4f448f31d09ccc6 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 14 Dec 2013 19:25:56 +0000 Subject: [PATCH] split_lines sets the last selection as the main one --- src/normal.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/normal.cc b/src/normal.cc index 27c2a963..fad234af 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -580,6 +580,7 @@ void split_lines(Context& context, int) res.push_back({line, {line, buffer[line].length()-1}}); res.push_back({max.line, max}); } + res.set_main_index(res.size() - 1); selections = std::move(res); }