Skip to content
Myr

[neovim] Keep alternate file unchanged

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

Close https://github.com/junegunn/fzf.vim/issues/265

authored by Junegunn Choi · committed by Junegunn Choi · parent 16b5902 · Browse files · 1 file+4 added−5 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+4 added−5 removed

  • other:+4 added−5 removed

1 file+4 added−5 removed

modified:plugin/fzf.vim+4 added-5 removed
428 unmodified lines
429 \ 'right': ['vertical botright', 'vertical resize', &columns] }430 let ppos = s:getpos()431 try432 if s:present(a:dict, 'window')433 execute a:dict.window433 execute 'keepalt' a:dict.window434 elseif !s:splittable(a:dict)435 execute (tabpagenr()-1).'tabnew'436 else437 for [dir, triple] in items(directions)
18 unmodified lines
456endfunction457458function! s:execute_term(dict, command, temps) abort459 let winrest = winrestcmd()460 let pbuf = bufnr('')461 let [ppos, winopts] = s:split(a:dict)461 let fzf = { 'buf': bufnr('%'), 'ppos': ppos, 'dict': a:dict, 'temps': a:temps,462 let fzf = { 'buf': bufnr(''), 'pbuf': pbuf, 'ppos': ppos, 'dict': a:dict, 'temps': a:temps,463 \ 'winopts': winopts, 'winrest': winrest, 'lines': &lines,464 \ 'columns': &columns, 'command': a:command }465 function! fzf.switch_back(inplace)466 if a:inplace && bufnr('') == self.buf466 " FIXME: Can't re-enter normal mode from terminal mode467 " execute "normal! \<c-^>"468 b #467 execute 'keepalt b' self.pbuf468 " No other listed buffer469 if bufnr('') == self.buf470 enew471 endif
133 unmodified lines