Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Dec 31, 2024
1 parent d79dd84 commit 0eeaa8b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion cmd/carapace/cmd/lazyinit/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ func CmdClink(completers []string) string {
local output = io.popen(prog):read("*a")
for line in string.gmatch(output, '[^\r\n]+') do
match_builder:addmatch(string.gsub(line, '\t.*', ""))
local matches = {}
for m in string.gmatch(line, '[^\t]+') do
table.insert(matches, m)
end
match_builder:addmatch({
match = matches[1],
description = matches[2]
})
end
return true
end
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/carapace-sh/carapace-bin
go 1.23.1

require (
github.com/carapace-sh/carapace v1.5.3-0.20241230194937-777eefad8a00
github.com/carapace-sh/carapace v1.5.3-0.20241231175203-6a2078c2f24d
github.com/carapace-sh/carapace-bridge v1.2.2
github.com/carapace-sh/carapace-selfupdate v0.0.8
github.com/carapace-sh/carapace-shlex v1.0.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/carapace-sh/carapace v1.5.3-0.20241230194937-777eefad8a00 h1:oezVhu2jkNAxLv3nLCKJMeQWN/Edf5vCc8rpe034cno=
github.com/carapace-sh/carapace v1.5.3-0.20241230194937-777eefad8a00/go.mod h1:0EJBqcIPrDiZ7+QMKPd0/LhJz3inAvdTz8JfLnH7SsU=
github.com/carapace-sh/carapace v1.5.3-0.20241231175203-6a2078c2f24d h1:yB/pTfPtbrwdPlk+2NZIAH3BW4URQO4MXWCUNW/lZEM=
github.com/carapace-sh/carapace v1.5.3-0.20241231175203-6a2078c2f24d/go.mod h1:0EJBqcIPrDiZ7+QMKPd0/LhJz3inAvdTz8JfLnH7SsU=
github.com/carapace-sh/carapace-bridge v1.2.2 h1:Zlzw7BajF4iHAFBClCYcptEG+7+F324dFyiGzGiU/kw=
github.com/carapace-sh/carapace-bridge v1.2.2/go.mod h1:HpN3iEdCmQtAD1pd/qHEnWmAF719CeNyJrY8FJ5/E4o=
github.com/carapace-sh/carapace-pflag v1.0.0 h1:uJMhl+vwEM/Eb0UdxZUuv4jo4rUAyPijkRGP5gfCuCE=
Expand Down

0 comments on commit 0eeaa8b

Please sign in to comment.