Commit b4e8d20
committed
pane.py(refactor): Remove pre-3.2 version guards
why: tmux >= 3.2a is now required, version guards for older tmux are unnecessary.
what:
- Remove has_gte_version("3.1") percentage checks in resize() - percentages always allowed
- Remove has_lt_version("3.1") size flag branching in split() - always use -l flag
- Remove has_gte_version("3.0") environment check in split() - -e flag always available
- Simplify nested if statements after removing version checks
- Remove unused has_gte_version, has_lt_version imports1 parent fb48dce commit b4e8d20
1 file changed
+16
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
| |||
650 | 651 | | |
651 | 652 | | |
652 | 653 | | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
| 654 | + | |
663 | 655 | | |
664 | 656 | | |
665 | 657 | | |
| |||
678 | 670 | | |
679 | 671 | | |
680 | 672 | | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
| 673 | + | |
| 674 | + | |
688 | 675 | | |
689 | 676 | | |
690 | 677 | | |
| |||
0 commit comments