summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-02-04 12:52:48 +1100
committerMaxime Coste <mawww@kakoune.org>2019-02-04 12:52:48 +1100
commit7f9fe32f2d2c1946df568a98dd82c1e851a1bb4a (patch)
treed308be5253e992f34d0a5a3790165364cfc446c5 /src/normal.cc
parentd28dbd09182432e0cb85ecc5a2e7d062428c292f (diff)
Remove target_eol and small code cleanups
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc3
1 files changed, 2 insertions, 1 deletions
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)