Skip to content

build(deps): libtmux 0.19.1 -> 0.20.0 #863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ def monkeypatch_plugin_test_packages(monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.syspath_prepend(os.path.abspath(os.path.relpath(path)))


@pytest.fixture(scope="function")
def session_params(session_params: t.Dict[str, t.Any]) -> t.Dict[str, t.Any]:
session_params.update({"x": 800, "y": 600})
return session_params


@pytest.fixture(scope="function")
def socket_name(request: pytest.FixtureRequest) -> str:
return "tmuxp_test%s" % next(namer)
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ tmuxp = 'tmuxp:cli.cli'

[tool.poetry.dependencies]
python = "^3.7"
libtmux = "~0.19.1"
libtmux = "~0.20.0"
colorama = ">=0.3.9"
PyYAML = "^6.0"

Expand Down
5 changes: 4 additions & 1 deletion src/tmuxp/workspace/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import typing as t

from libtmux._internal.query_list import ObjectDoesNotExist
from libtmux.common import has_lt_version
from libtmux.common import has_gte_version, has_lt_version
from libtmux.pane import Pane
from libtmux.server import Server
from libtmux.session import Session
Expand Down Expand Up @@ -236,6 +236,9 @@ def build(self, session: t.Optional[Session] = None, append: bool = False) -> No
new_session_kwargs["start_directory"] = self.session_config[
"start_directory"
]
if has_gte_version("2.6"):
new_session_kwargs["x"] = 800
new_session_kwargs["y"] = 600
session = self.server.new_session(
session_name=self.session_config["session_name"],
**new_session_kwargs,
Expand Down