diff options
| author | Maxime Coste <mawww@kakoune.org> | 2025-07-08 11:52:44 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2025-07-08 12:07:33 +1000 |
| commit | de1516a8d822f72bddfb158126b6e609afc63c64 (patch) | |
| tree | 9765b18349657a766b92046cd23976ad26815acf /src/normal.cc | |
| parent | ce1d512a0c1922ab5f43f28e7bae573508c98601 (diff) | |
Replace on_scope_end with CTAD with OnScopeEnd directly
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/normal.cc b/src/normal.cc index 37bbbb2a..96940a90 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1229,7 +1229,7 @@ void join_lines(Context& context, NormalParams params) { ScopedSelectionEdition selection_edition{context}; SelectionList sels{context.selections()}; - auto restore_sels = on_scope_end([&]{ + auto restore_sels = OnScopeEnd([&]{ sels.update(); context.selections_write_only() = std::move(sels); }); @@ -1690,7 +1690,7 @@ void replay_macro(Context& context, NormalParams params) throw runtime_error(format("register '{}' is empty", reg)); running_macros[idx] = true; - auto stop = on_scope_end([&]{ running_macros[idx] = false; }); + auto stop = OnScopeEnd([&]{ running_macros[idx] = false; }); auto keys = parse_keys(reg_val[0]); ScopedEdition edition(context); |
