@@ -47,7 +47,7 @@ M.status = function(opts)
4747 -- we always require processing (can't send the raw command to fzf)
4848 opts .requires_processing = true
4949
50- local contents
50+ local contents , id
5151 if opts .multiprocess then
5252 -- git status does not require preprocessing if not loading devicons
5353 -- opts.__mt_preprocess = opts.file_icons
@@ -72,9 +72,8 @@ M.status = function(opts)
7272 end
7373
7474 -- build the "reload" cmd and remove '-- {+}' from the initial cmd
75- local reload , id = shell .reload_action_cmd (opts , " {+}" )
76- contents = reload :gsub (" %-%-%s+{%+}$" , " " )
77- opts .__reload_cmd = reload
75+ contents , id = shell .reload_action_cmd (opts , " " )
76+ opts .__reload_cmd = contents
7877
7978 -- when the action resumes the preview re-attaches which registers
8079 -- a new shell function id, done enough times it will overwrite the
@@ -270,9 +269,8 @@ M.stash = function(opts)
270269 end
271270
272271 -- build the "reload" cmd and remove '-- {+}' from the initial cmd
273- local reload , id = shell .reload_action_cmd (opts , " {+}" )
274- local contents = reload :gsub (" %-%-%s+{%+}$" , " " )
275- opts .__reload_cmd = reload
272+ local contents , id = shell .reload_action_cmd (opts , " " )
273+ opts .__reload_cmd = contents
276274
277275 opts ._fn_pre_fzf = function ()
278276 shell .set_protected (id )
0 commit comments