From 9f65a4e6dd735ecdcb4b469b485ff643cd1f54fe Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 19 Apr 2015 15:00:37 +0100 Subject: Remove Context::set_selections, use Context::selections() = ... --- src/normal.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/normal.cc') diff --git a/src/normal.cc b/src/normal.cc index e4d22cc6..7f737032 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -766,7 +766,7 @@ void keep(Context& context, NormalParams) } if (keep.empty()) throw runtime_error("no selections remaining"); - context.set_selections(std::move(keep)); + context.selections() = std::move(keep); }); } @@ -788,7 +788,7 @@ void keep_pipe(Context& context, NormalParams) } if (keep.empty()) throw runtime_error("no selections remaining"); - context.set_selections(std::move(keep)); + context.selections() = std::move(keep); }); } template @@ -1267,7 +1267,7 @@ void undo(Context& context, NormalParams) { auto ranges = compute_modified_ranges(buffer, timestamp); if (not ranges.empty()) - context.set_selections(std::move(ranges)); + context.selections() = std::move(ranges); context.selections().avoid_eol(); } else if (not res) @@ -1284,7 +1284,7 @@ void redo(Context& context, NormalParams) { auto ranges = compute_modified_ranges(buffer, timestamp); if (not ranges.empty()) - context.set_selections(std::move(ranges)); + context.selections() = std::move(ranges); context.selections().avoid_eol(); } -- cgit v1.2.3