diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-12-14 19:25:56 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-12-14 19:25:56 +0000 |
| commit | 4e3d551426d840eb10f8ba0ac4f448f31d09ccc6 (patch) | |
| tree | 5712acf99d42e4235f453bc141de294205c058c3 /src | |
| parent | 49ee2495a47774db6102807e7d640924bb96d83d (diff) | |
split_lines sets the last selection as the main one
Diffstat (limited to 'src')
| -rw-r--r-- | src/normal.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |
