Skip to content

Commit b65c264

Browse files
committed
LPD-73748 lec.sh: fixes too many commands returned
1 parent 69d9d0b commit b65c264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/cli/lec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ _listWorktrees() {
370370
_getClosestCommand() {
371371
local command="${1}"
372372

373-
_listPublicCommands | _fzf --filter "${command}"
373+
_listPublicCommands | _fzf --filter "${command}" | head -n 1
374374
}
375375
_verifyCommand() {
376376
local command="${1}"

0 commit comments

Comments
 (0)