summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc4
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") });