Skip to content
Myr

Merge pull request #630 from kassio/master

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

Remove `name` option from `termopen`.

authored by Junegunn Choi · committed by GitHub · parents d6a99c0, 27444d6 · Browse files · 1 file+3 added−4 removed
This commit

State

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

Diff stats

1 file+3 added−4 removed

  • other:+3 added−4 removed

1 file+3 added−4 removed

modified:plugin/fzf.vim+3 added-4 removed
202 unmodified lines
203function! fzf#run(...) abort204try205 let oshell = &shell206 set shell=sh207 if has('nvim') && bufexists('term://*:FZF')207 if has('nvim') && len(filter(range(1, bufnr('$')), 'bufname(v:val) =~# ";#FZF"'))208 call s:warn('FZF is already running!')209 return []210 endif211 let dict = exists('a:1') ? s:upgrade(a:1) : {}
211 unmodified lines
423424function! s:execute_term(dict, command, temps) abort425 let [ppos, winopts] = s:split(a:dict)426 let fzf = { 'buf': bufnr('%'), 'ppos': ppos, 'dict': a:dict, 'temps': a:temps,427 \ 'name': 'FZF', 'winopts': winopts, 'command': a:command }427 \ 'winopts': winopts, 'command': a:command }428 function! fzf.switch_back(inplace)429 if a:inplace && bufnr('') == self.buf430 " FIXME: Can't re-enter normal mode from terminal mode431 " execute "normal! \<c-^>"
33 unmodified lines
465 try466 if s:present(a:dict, 'dir')467 execute 'lcd' s:escape(a:dict.dir)468 endif469 call termopen(a:command, fzf)469 call termopen(a:command . ';#FZF', fzf)470 finally471 if s:present(a:dict, 'dir')472 lcd -473 endif
75 unmodified lines
549command! -nargs=* -complete=dir -bang FZF call s:cmd(<bang>0, <f-args>)550551let &cpo = s:cpo_save552unlet s:cpo_save553