We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d67378 commit 2e41f7cCopy full SHA for 2e41f7c
libtmux/server.py
@@ -477,7 +477,9 @@ def new_session(self,
477
if start_directory:
478
tmux_args += ('-c', start_directory)
479
480
- if has_gte_version('2.6'):
+ # tmux 2.6 gives unattached sessions a tiny default area
481
+ # no need send in -x/-y if they're in a client already, though
482
+ if has_gte_version('2.6') and 'TMUX' not in os.environ:
483
tmux_args += ('-x', 800, '-y', 600)
484
485
proc = self.cmd(
0 commit comments