diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-12-14 14:17:02 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-12-14 14:38:17 +0000 |
| commit | 6afef079b6104666e524dbae99592efc9c1b8136 (patch) | |
| tree | d6e95356477f478403b0ba8603b53b705a22cb37 /src/client.cc | |
| parent | eced7d4c246c007f9617d91edd5867e9e002bfc1 (diff) | |
Remove Editor::main_selection(|index), directly use the SelectionList method
Diffstat (limited to 'src/client.cc')
| -rw-r--r-- | src/client.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.cc b/src/client.cc index 09d5f89b..bdbcaf78 100644 --- a/src/client.cc +++ b/src/client.cc @@ -41,7 +41,7 @@ void Client::print_status(DisplayLine status_line) DisplayLine Client::generate_mode_line() const { - auto pos = context().editor().main_selection().last(); + auto pos = context().editor().selections().main().last(); auto col = context().buffer()[pos.line].char_count_to(pos.column); std::ostringstream oss; @@ -76,7 +76,7 @@ void Client::redraw_ifn() static void reload_buffer(Context& context, const String& filename) { DisplayCoord view_pos = context.window().position(); - BufferCoord cursor_pos = context.editor().main_selection().last(); + BufferCoord cursor_pos = context.editor().selections().main().last(); Buffer* buf = create_buffer_from_file(filename); if (not buf) return; |
