Skip to content

Commit 1882e99

Browse files
authored
build(deps): libtmux 0.19.1 -> 0.20.0 (#863)
2 parents 88979eb + 1ffbe84 commit 1882e99

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ def monkeypatch_plugin_test_packages(monkeypatch: pytest.MonkeyPatch) -> None:
7373
monkeypatch.syspath_prepend(os.path.abspath(os.path.relpath(path)))
7474

7575

76+
@pytest.fixture(scope="function")
77+
def session_params(session_params: t.Dict[str, t.Any]) -> t.Dict[str, t.Any]:
78+
session_params.update({"x": 800, "y": 600})
79+
return session_params
80+
81+
7682
@pytest.fixture(scope="function")
7783
def socket_name(request: pytest.FixtureRequest) -> str:
7884
return "tmuxp_test%s" % next(namer)

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ tmuxp = 'tmuxp:cli.cli'
4747

4848
[tool.poetry.dependencies]
4949
python = "^3.7"
50-
libtmux = "~0.19.1"
50+
libtmux = "~0.20.0"
5151
colorama = ">=0.3.9"
5252
PyYAML = "^6.0"
5353

src/tmuxp/workspace/builder.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import typing as t
1010

1111
from libtmux._internal.query_list import ObjectDoesNotExist
12-
from libtmux.common import has_lt_version
12+
from libtmux.common import has_gte_version, has_lt_version
1313
from libtmux.pane import Pane
1414
from libtmux.server import Server
1515
from libtmux.session import Session
@@ -236,6 +236,9 @@ def build(self, session: t.Optional[Session] = None, append: bool = False) -> No
236236
new_session_kwargs["start_directory"] = self.session_config[
237237
"start_directory"
238238
]
239+
if has_gte_version("2.6"):
240+
new_session_kwargs["x"] = 800
241+
new_session_kwargs["y"] = 600
239242
session = self.server.new_session(
240243
session_name=self.session_config["session_name"],
241244
**new_session_kwargs,

0 commit comments

Comments
 (0)