diff options
| author | Maxime Coste <mawww@kakoune.org> | 2021-12-20 09:13:53 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2021-12-20 09:13:53 +1100 |
| commit | f68e8313b2282b1a94bd5baee2b87581f31fc5e8 (patch) | |
| tree | d77a904c07d476d4399c8a83e558da2f640c3e2e /src/normal.cc | |
| parent | 92f7306d5b0af8439bac3d81a965e3ef9bd9dc45 (diff) | |
Fix invalid line joining logic with multiple selection per line
Fixes #4476
Diffstat (limited to 'src/normal.cc')
| -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 c1a084a4..40efc32d 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1104,6 +1104,7 @@ void join_lines_select_spaces(Context& context, NormalParams) if (selections.empty()) return; context.selections_write_only() = std::move(selections); + context.selections().merge_consecutive(); ScopedEdition edition(context); context.selections().replace({" "_str}); } |
