diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-05-12 23:25:15 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-05-13 20:09:06 +0100 |
| commit | ea3e92aa5e68e73fa95196332b739891bbf3f24f (patch) | |
| tree | 1b91673cdbec34a9dcb592858890fc6db1255ff9 /src/client.cc | |
| parent | 7bc73b7ef9402f81a6bb496b03ba84197f76e642 (diff) | |
SelectionList know its buffer and timestamp
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 5be59b99..dacaf607 100644 --- a/src/client.cc +++ b/src/client.cc @@ -18,7 +18,7 @@ Client::Client(std::unique_ptr<UserInterface>&& ui, EnvVarMap env_vars, String name) : m_ui{std::move(ui)}, m_window{std::move(window)}, - m_input_handler{m_window->buffer(), std::move(selections), + m_input_handler{std::move(selections), std::move(name)}, m_env_vars(env_vars) { @@ -102,7 +102,7 @@ static void reload_buffer(Context& context, const String& filename) if (not buf) return; context.change_buffer(*buf); - context.selections() = SelectionList{buf->clamp(cursor_pos)}; + context.selections() = SelectionList{ *buf, buf->clamp(cursor_pos)}; context.window().set_position(view_pos); context.print_status({ "'" + buf->display_name() + "' reloaded", get_color("Information") }); |
