diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-05-16 11:42:58 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-05-16 11:42:58 +0100 |
| commit | cf7b64ba67fc933938abcf676d5f4351078db919 (patch) | |
| tree | 9c9a2075de25399845a6de6066979c754d8fc00a /src | |
| parent | 73ddf18dc3144c20b0eb88accd69d1b8b851d855 (diff) | |
Preserve selections across reloads
Diffstat (limited to 'src')
| -rw-r--r-- | src/client.cc | 4 |
1 files changed, 0 insertions, 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") }); } |
