diff options
| author | Maxime Coste <mawww@kakoune.org> | 2022-12-06 17:48:42 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2022-12-06 17:48:42 +1100 |
| commit | 933e4a599cfd3fc09edd67a024b8af08bbec7c01 (patch) | |
| tree | 5fd476b2a808cffed01ae3adfaecab0f35755281 /src/client_manager.hh | |
| parent | e7e46ef76a374b9e4a1c48d068023a393d78601c (diff) | |
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
Diffstat (limited to 'src/client_manager.hh')
| -rw-r--r-- | src/client_manager.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client_manager.hh b/src/client_manager.hh index 2323e07b..8edeb790 100644 --- a/src/client_manager.hh +++ b/src/client_manager.hh @@ -21,7 +21,7 @@ public: Client* create_client(std::unique_ptr<UserInterface>&& ui, int pid, String name, EnvVarMap env_vars, StringView init_cmds, - Optional<BufferCoord> init_coord, + StringView init_buffer, Optional<BufferCoord> init_coord, Client::OnExitCallback on_exit); bool empty() const { return m_clients.empty(); } |
