Commit 265b9eb
committed
Server(fix[new_session]): -f sets client flags, not config file path
why: new-session -f calls server_client_set_flags(), setting client
flags like no-output and read-only. It does not load a config file
(that is the top-level tmux -f flag). Verified in cmd-new-session.c:326.
what:
- Rename config_file param to client_flags
- Change type from StrPath to str (flags are strings, not paths)
- Remove pathlib.Path wrapping in implementation
- Update test to use actual client flag value1 parent ade3763 commit 265b9eb
2 files changed
Lines changed: 11 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1516 | 1516 | | |
1517 | 1517 | | |
1518 | 1518 | | |
1519 | | - | |
| 1519 | + | |
1520 | 1520 | | |
1521 | 1521 | | |
1522 | 1522 | | |
| |||
1571 | 1571 | | |
1572 | 1572 | | |
1573 | 1573 | | |
1574 | | - | |
1575 | | - | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
1576 | 1577 | | |
1577 | 1578 | | |
1578 | 1579 | | |
| |||
1648 | 1649 | | |
1649 | 1650 | | |
1650 | 1651 | | |
1651 | | - | |
1652 | | - | |
| 1652 | + | |
| 1653 | + | |
1653 | 1654 | | |
1654 | 1655 | | |
1655 | 1656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
911 | | - | |
| 911 | + | |
912 | 912 | | |
913 | | - | |
914 | 913 | | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
| 914 | + | |
919 | 915 | | |
920 | | - | |
921 | | - | |
| 916 | + | |
| 917 | + | |
922 | 918 | | |
923 | | - | |
| 919 | + | |
0 commit comments