Skip to content

Commit 4ee42b2

Browse files
committed
fix(git_stash): upvalue ref in fn_transform
1 parent 8e7e3e2 commit 4ee42b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/fzf-lua/providers/git.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ M.stash = function(opts)
219219
opts.fn_transform = function(x)
220220
local stash, rest = x:match("([^:]+)(.*)")
221221
if stash then
222-
stash = utils.ansi_codes.yellow(stash)
222+
stash = FzfLua.utils.ansi_codes.yellow(stash)
223223
stash = stash:gsub("{%d+}", function(s)
224-
return ("%s"):format(utils.ansi_codes.green(tostring(s)))
224+
return ("%s"):format(FzfLua.utils.ansi_codes.green(tostring(s)))
225225
end)
226226
end
227227
return (not stash or not rest) and x or stash .. rest

0 commit comments

Comments
 (0)