Skip to content
Myr

[vim] Reset window sizes on close

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

Fix #520 Fix junegunn/fzf.vim#42

authored by Joshua Rubin · committed by Junegunn Choi · parent f958c9d · Browse files · 1 file+7 added−1 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+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:plugin/fzf.vim+7 added-1 removed
429 unmodified lines
430 endtry431endfunction432433function! s:execute_term(dict, command, temps) abort434 let winrest = winrestcmd()435 let [ppos, winopts] = s:split(a:dict)436 let fzf = { 'buf': bufnr('%'), 'ppos': ppos, 'dict': a:dict, 'temps': a:temps,436 \ 'winopts': winopts, 'command': a:command }437 \ 'winopts': winopts, 'winrest': winrest, 'lines': &lines,438 \ 'columns': &columns, 'command': a:command }439 function! fzf.switch_back(inplace)440 if a:inplace && bufnr('') == self.buf441 " FIXME: Can't re-enter normal mode from terminal mode442 " execute "normal! \<c-^>"
23 unmodified lines
466 if bufexists(self.buf)467 execute 'bd!' self.buf468 endif469470 if &lines <= self.lines && &columns <= self.columns && s:getpos() == self.ppos471 execute self.winrest472 endif473474 if !s:exit_handler(a:code, self.command, 1)475 return476 endif477
94 unmodified lines