From 977e5effd943da428c123e483a7afbfcdcc8ecd9 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 5 Apr 2021 17:28:18 +0900 Subject: [PATCH] [vim] Fix paste on MacVim Close https://github.com/junegunn/fzf.vim/issues/1233 --- plugin/fzf.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 26c35b8d..87481462 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -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', '') - endif if is_popup && exists('#TerminalWinOpen') doautocmd TerminalWinOpen endif @@ -863,6 +860,9 @@ function! s:execute_term(dict, command, temps) abort endif endif tnoremap + if exists('&termwinkey') && (empty(&termwinkey) || &termwinkey =~? '') + tnoremap . + endif finally call s:dopopd() endtry