split_lines sets the last selection as the main one

This commit is contained in:
Maxime Coste 2013-12-14 19:25:56 +00:00
parent 49ee2495a4
commit 4e3d551426

View File

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