diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-07-13 08:24:55 +0900 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-07-13 08:24:55 +0900 |
| commit | 26cc8b3ee01e98d04473e2c57ecc2c937a5437b1 (patch) | |
| tree | e324187f39313e357a49ec82eef456e9f0352627 /src | |
| parent | 7389e37b4b8954ce2f92f74df6d18de44389387b (diff) | |
Fix undo handling in <a-o>/<a-O>
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 b676f36c..1c177bac 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1764,6 +1764,7 @@ void add_empty_line(Context& context, NormalParams params) String new_lines{'\n', CharCount{count}}; auto& buffer = context.buffer(); auto& sels = context.selections(); + ScopedEdition edition{context}; for (int i = 0; i < sels.size(); ++i) { auto line = (above ? sels[i].min().line : sels[i].max().line + 1) + (i * count); |
