diff options
author | Griffin Smith <grfn@gws.fyi> | 2021-12-15T23·18-0500 |
---|---|---|
committer | grfn <grfn@gws.fyi> | 2021-12-15T23·30+0000 |
commit | 47f1f3be5f3c8ebaf739339e6121bfa26e951037 (patch) | |
tree | 1bc398af0b0e380fa244f9bee9fec8fd5a42b110 /tools | |
parent | 7ed62b53371e4686b785fe560d3b5f8ec1e74788 (diff) |
fix(tvl.el): Replace fifth with nth 4 r/3260
as before, fifth doesn't exist on all emacsen, but nth definitely does Change-Id: Ic0e4e3790402d960d1546d37187758a4d9ca33c2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4346 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to '')
-rw-r--r-- | tools/emacs-pkgs/tvl/tvl.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/emacs-pkgs/tvl/tvl.el b/tools/emacs-pkgs/tvl/tvl.el index 6888de3571b6..4eace3e35cbb 100644 --- a/tools/emacs-pkgs/tvl/tvl.el +++ b/tools/emacs-pkgs/tvl/tvl.el @@ -128,7 +128,7 @@ passes. This is potentially dangerous, use with care." (-max-by (-on #'> (lambda (ref) (string-to-number - (fifth (split-string ref (rx "/")))))) + (nth 4 (split-string ref (rx "/")))))) (-remove (apply-partially #'s-ends-with-p "meta") (cdr cl-to-refs))))) |