Skip to content
Myr

[neovim] Fix lcd when fzf job exits on Windows (#970)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jan Edmund Lazo · committed by Junegunn Choi · parent 68bd410 · Browse files · 1 file+7 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Related: #960 (relative filepaths)

Diff stats

1 file+7 added−4 removed

  • other:+7 added−4 removed

1 file+7 added−4 removed

modified:plugin/fzf.vim+7 added-4 removed
527 unmodified lines
528 call writefile(s:wrap_cmds(command), batchfile)529 let command = batchfile530 let a:temps.batchfile = batchfile531 if has('nvim')532 let s:dict = a:dict533 let s:temps = a:temps532 let fzf = {}533 let fzf.dict = a:dict534 let fzf.temps = a:temps535 function! fzf.on_exit(job_id, exit_status, event) dict536 if s:present(self.dict, 'dir')537 execute 'lcd' s:escape(self.dict.dir)538 endif536 let lines = s:collect(s:temps)537 call s:callback(s:dict, lines)539 let lines = s:collect(self.temps)540 call s:callback(self.dict, lines)541 endfunction542 let cmd = 'start /wait cmd /c '.command543 call jobstart(cmd, fzf)544 return []
243 unmodified lines