Skip to content
Myr

Merge pull request #264 from kassio/master

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

Do not rename terminal buffer

authored by Junegunn Choi · committed by Junegunn Choi · parents eaa3c67, 9f33068 · Browse files · 1 file+2 added−7 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+2 added−7 removed

  • other:+2 added−7 removed

1 file+2 added−7 removed

modified:plugin/fzf.vim+2 added-7 removed
96 unmodified lines
97function! fzf#run(...) abort98try99 let oshell = &shell100 set shell=sh101 if has('nvim') && bufexists('[FZF]')101 if has('nvim') && bufexists('term://*:FZF')102 echohl WarningMsg103 echomsg 'FZF is already running!'104 echohl None105 return []
173 unmodified lines
279function! s:execute_term(dict, command, temps)280 call s:split(a:dict)281 call s:pushd(a:dict)282283 let fzf = { 'buf': bufnr('%'), 'dict': a:dict, 'temps': a:temps }283 let fzf = { 'buf': bufnr('%'), 'dict': a:dict, 'temps': a:temps, 'name': 'FZF' }284 function! fzf.on_exit(id, code)285 let tab = tabpagenr()286 if bufnr('') == self.buf287 " We use close instead of bd! since Vim does not close the split when288 " there's no other listed buffer289 close290 " FIXME This should be unnecessary due to `bufhidden=wipe` but in some291 " cases Neovim fails to clean up the buffer and `bufexists('[FZF]')292 " returns 1 even when it cannot be seen anywhere else. e.g. `FZF!`293 silent! execute 'bd!' self.buf290 endif291 if s:ptab == tab292 wincmd p293 endif
6 unmodified lines
300 endtry301 endfunction302303 call termopen(a:command, fzf)308 silent file [FZF]304 startinsert305 return []306endfunction307
67 unmodified lines