Commit 4d2d9b5
committed
hooks(docs): skip set_hooks doctests for cross-version compat
why: Hook arrays are a tmux 3.0+ feature. On tmux < 3.0, hooks are
stored by exact name in a red-black tree, so "session-renamed[0]"
is a literal hook name, not an array index. The doctests fail on
tmux 2.6-2.8 because unset_hook('session-renamed') doesn't clear
hooks named "session-renamed[0]".
what:
- Add # doctest: +SKIP to all set_hooks examples
- Keep examples as documentation but don't run them
Ref: tmux commit dfb7bb68 (April 2019) merged hooks into options
as array options for tmux 3.0.1 parent ae5d068 commit 4d2d9b5
1 file changed
+16
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
| 442 | + | |
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
449 | | - | |
| 448 | + | |
| 449 | + | |
450 | 450 | | |
451 | 451 | | |
452 | | - | |
| 452 | + | |
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
| 457 | + | |
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
464 | | - | |
| 463 | + | |
| 464 | + | |
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
470 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
471 | 474 | | |
472 | 475 | | |
473 | | - | |
474 | | - | |
| 476 | + | |
| 477 | + | |
475 | 478 | | |
476 | 479 | | |
477 | | - | |
| 480 | + | |
478 | 481 | | |
479 | 482 | | |
480 | | - | |
| 483 | + | |
481 | 484 | | |
482 | 485 | | |
483 | 486 | | |
| |||
0 commit comments