Skip to content
Snippets Groups Projects
Commit 446e0446 authored by Jan Edmund Lazo's avatar Jan Edmund Lazo Committed by Junegunn Choi
Browse files

[neovim] use batchfile for s:execute_term in Windows

parent 5097e563
No related branches found
No related tags found
No related merge requests found
......@@ -685,7 +685,14 @@ function! s:execute_term(dict, command, temps) abort
if s:present(a:dict, 'dir')
execute 'lcd' s:escape(a:dict.dir)
endif
call termopen(a:command.s:term_marker, fzf)
if s:is_win
let fzf.temps.batchfile = s:fzf_tempname().'.bat'
call writefile(s:wrap_cmds(a:command), fzf.temps.batchfile)
let command = fzf.temps.batchfile
else
let command = a:command
endif
call termopen(command.s:term_marker, fzf)
finally
if s:present(a:dict, 'dir')
lcd -
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment