Skip to content

Commit c72d4a5

Browse files
committed
builder! Remove tmux 2.6 version check for terminal size
The terminal size detection feature was gated behind a tmux 2.6+ check. Since tmux 3.2+ is now the minimum version, this check is always true. - Simplify condition to only check TMUXP_DETECT_TERMINAL_SIZE env var - Remove unused has_gte_version import
1 parent 417e96c commit c72d4a5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/tmuxp/workspace/builder.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import typing as t
1010

1111
from libtmux._internal.query_list import ObjectDoesNotExist
12-
from libtmux.common import has_gte_version
1312
from libtmux.pane import Pane
1413
from libtmux.server import Server
1514
from libtmux.session import Session
@@ -253,10 +252,7 @@ def build(self, session: Session | None = None, append: bool = False) -> None:
253252
"start_directory"
254253
]
255254

256-
if (
257-
has_gte_version("2.6")
258-
and os.getenv("TMUXP_DETECT_TERMINAL_SIZE", "1") == "1"
259-
):
255+
if os.getenv("TMUXP_DETECT_TERMINAL_SIZE", "1") == "1":
260256
terminal_size = shutil.get_terminal_size(
261257
fallback=(get_default_columns(), get_default_rows()),
262258
)

0 commit comments

Comments
 (0)