From cf7b64ba67fc933938abcf676d5f4351078db919 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 16 May 2015 11:42:58 +0100 Subject: [PATCH] Preserve selections across reloads --- src/client.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/client.cc b/src/client.cc index 0d729bc3..71e8c29f 100644 --- a/src/client.cc +++ b/src/client.cc @@ -173,12 +173,8 @@ void Client::reload_buffer() { auto& buffer = context().buffer(); kak_assert(buffer.flags() & Buffer::Flags::File); - CharCoord view_pos = context().window().position(); - ByteCoord cursor_pos = context().selections().main().cursor(); Buffer* buf = create_buffer_from_file(buffer.name()); kak_assert(buf == &buffer); - context().selections_write_only() = SelectionList{buffer, buffer.clamp(cursor_pos)}; - context().window().set_position(view_pos); context().print_status({ "'" + buffer.display_name() + "' reloaded", get_face("Information") }); }