From 7f9fe32f2d2c1946df568a98dd82c1e851a1bb4a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 4 Feb 2019 12:52:48 +1100 Subject: Remove target_eol and small code cleanups --- src/normal.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/normal.cc') diff --git a/src/normal.cc b/src/normal.cc index 9ffc4bd9..c0370015 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -2057,7 +2057,8 @@ void move_cursor(Context& context, NormalParams params) void select_whole_buffer(Context& context, NormalParams) { - select_buffer(context.selections()); + auto& buffer = context.buffer(); + context.selections_write_only() = SelectionList{buffer, {{0,0}, {buffer.back_coord(), max_column}}}; } void keep_selection(Context& context, NormalParams p) -- cgit v1.2.3