46
46
-- NOT USED ANYMORE, we use `vim.g.fzf_lua_server` instead
47
47
-- local action_server_address = nil
48
48
49
- local TMPDIR = vim .fn .fnamemodify (vim .fn .tempname (), " :h:h:h" )
50
-
51
49
function M .raw_async_action (fn , fzf_field_expression , debug )
52
50
if not fzf_field_expression then
53
51
fzf_field_expression = " {+}"
@@ -92,10 +90,6 @@ function M.raw_async_action(fn, fzf_field_expression, debug)
92
90
utils ._if_win (path .normalize (vim .env .VIMRUNTIME ),
93
91
libuv .shellescape (vim .env .VIMRUNTIME )))
94
92
95
- local tmp_dir = os.getenv (" TMPDIR" ) and " " or string.format (
96
- utils ._if_win ([[ set TMPDIR=%s& ]] , " TMPDIR=%s " ),
97
- utils ._if_win (path .normalize (TMPDIR ), libuv .shellescape (TMPDIR )))
98
-
99
93
local call_args = (" fzf_lua_server=[[%s]], fnc_id=%d %s" ):format (
100
94
vim .g .fzf_lua_server , id , debug and " , debug=true" or " " )
101
95
@@ -104,8 +98,7 @@ function M.raw_async_action(fn, fzf_field_expression, debug)
104
98
-- special shell chars ('+', '-', etc), examples where this can
105
99
-- happen are the `git status` command and git branches from diff
106
100
-- worktrees (#600)
107
- local action_cmd = (" %s%s%s -n --headless -u NONE -i NONE --cmd %s -- %s" ):format (
108
- tmp_dir ,
101
+ local action_cmd = (" %s%s -n --headless -u NONE -i NONE --cmd %s -- %s" ):format (
109
102
nvim_runtime ,
110
103
libuv .shellescape (path .normalize (nvim_bin )),
111
104
libuv .shellescape ((" lua %sloadfile([[%s]])().rpc_nvim_exec_lua({%s})" ):format (
0 commit comments