summaryrefslogtreecommitdiff
path: root/src/remote.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2016-12-01 20:40:50 +0000
committerMaxime Coste <mawww@kakoune.org>2016-12-01 20:55:20 +0000
commita65e8142f37fc8c22fc697440ea5632d604ff91f (patch)
treedf05fb909b0cd7fed04ccd73b5445e6f40d7dcfb /src/remote.cc
parent3ad554167dbc6cc5021ad48d132513a006fd927f (diff)
Rework handling of initial coordinates so that init commands can change them
Fixes #944
Diffstat (limited to 'src/remote.cc')
-rw-r--r--src/remote.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/remote.cc b/src/remote.cc
index 743483ad..e402322e 100644
--- a/src/remote.cc
+++ b/src/remote.cc
@@ -650,13 +650,13 @@ private:
{
case MessageType::Connect:
{
- auto init_command = m_reader.read<String>();
+ auto init_cmds = m_reader.read<String>();
auto dimensions = m_reader.read<DisplayCoord>();
auto env_vars = m_reader.read_idmap<String, MemoryDomain::EnvVars>();
RemoteUI* ui = new RemoteUI{sock, dimensions};
if (auto* client = ClientManager::instance().create_client(
- std::unique_ptr<UserInterface>{ui},
- std::move(env_vars), init_command))
+ std::unique_ptr<UserInterface>(ui),
+ std::move(env_vars), init_cmds, {}))
ui->set_client(client);
Server::instance().remove_accepter(this);