Skip to content

Commit

Permalink
fix(fzf-lua): smart-open on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 10, 2024
1 parent fbcf55f commit 4d0f045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/sources/fzf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function M.open(selected, fzf_opts, opts)
M.add(selected, fzf_opts, opts)
end

local smart_prefix = require("trouble.util").is_win() and "IF %FZF_SELECT_COUNT% LEQ 0 (echo select-all)"
local smart_prefix = require("trouble.util").is_win() and "transform(IF %FZF_SELECT_COUNT% LEQ 0 (echo select-all))"
or "transform([ $FZF_SELECT_COUNT -eq 0 ] && echo select-all)"

M.actions = {
Expand Down

0 comments on commit 4d0f045

Please sign in to comment.