mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(eshell): "attempt to open-code ‘anonymous lambda’ with too few arguments"
Fix: #8364
Ref: #6867
Amend: c7ca3ea8cc
This commit is contained in:
@ -234,14 +234,11 @@ Return nil if there is none."
|
|||||||
(let ((str (split-string (esh-help-man-string cmd) "\n")))
|
(let ((str (split-string (esh-help-man-string cmd) "\n")))
|
||||||
(if (equal (concat "No manual entry for " cmd) (car str))
|
(if (equal (concat "No manual entry for " cmd) (car str))
|
||||||
(ignore (puthash cmd 'none esh-help-man-cache))
|
(ignore (puthash cmd 'none esh-help-man-cache))
|
||||||
(puthash cmd
|
(puthash
|
||||||
(-some->> str
|
cmd (when-let* ((str (seq-drop-while (fn! (not (string-match-p "^SYNOPSIS$" %))) str))
|
||||||
(--drop-while (not (string-match-p "^SYNOPSIS$" it)))
|
(str (nth 1 str)))
|
||||||
(nth 1)
|
(substring str (string-match-p "[^\s\t]" str)))
|
||||||
(funcall (lambda (s)
|
esh-help-man-cache))))))
|
||||||
(let ((idx (string-match "[^\s\t]" s)))
|
|
||||||
(substring s idx)))))
|
|
||||||
esh-help-man-cache))))))
|
|
||||||
|
|
||||||
|
|
||||||
(use-package! eshell-did-you-mean
|
(use-package! eshell-did-you-mean
|
||||||
|
Reference in New Issue
Block a user