Skip to content

Commit

Permalink
[vim] Fix paste on MacVim
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Apr 5, 2021
1 parent 8b36a4c commit 977e5ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/fzf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -852,9 +852,6 @@ function! s:execute_term(dict, command, temps) abort
let term_opts.curwin = 1
endif
let fzf.buf = term_start([&shell, &shellcmdflag, command], term_opts)
if exists('&termwinkey')
call setbufvar(fzf.buf, '&termwinkey', '<c-z>')
endif
if is_popup && exists('#TerminalWinOpen')
doautocmd <nomodeline> TerminalWinOpen
endif
Expand All @@ -863,6 +860,9 @@ function! s:execute_term(dict, command, temps) abort
endif
endif
tnoremap <buffer> <c-z> <nop>
if exists('&termwinkey') && (empty(&termwinkey) || &termwinkey =~? '<c-w>')
tnoremap <buffer> <c-w> <c-w>.
endif
finally
call s:dopopd()
endtry
Expand Down

0 comments on commit 977e5ef

Please sign in to comment.