From 933e4a599cfd3fc09edd67a024b8af08bbec7c01 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 6 Dec 2022 17:48:42 +1100 Subject: Load buffer in command line order Pass the first buffer on the the command line explicitely to client creation. This ensure the buffer list matches the command line, which makes buffer-next/buffer-previous a bit more useful. Fixes #2705 --- src/remote.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/remote.cc') diff --git a/src/remote.cc b/src/remote.cc index 99fda3e1..50dda1b0 100644 --- a/src/remote.cc +++ b/src/remote.cc @@ -793,7 +793,7 @@ private: auto* ui = new RemoteUI{sock, dimensions}; ClientManager::instance().create_client( std::unique_ptr(ui), pid, std::move(name), - std::move(env_vars), init_cmds, init_coord, + std::move(env_vars), init_cmds, {}, init_coord, [ui](int status) { ui->exit(status); }); Server::instance().remove_accepter(this); -- cgit v1.2.3