diff options
| author | Michael Smith <mikesmiffy128@gmail.com> | 2017-08-26 20:10:01 -0400 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-09-05 13:29:46 +0900 |
| commit | 5097e563df9c066e307b7923283cf1609ede693e (patch) | |
| tree | 6f7093b060ba168356999aade7669f8a8da44d4c /plugin/fzf.vim | |
| parent | c7ad97c641aa9b3fa6af13431381e27539a5985d (diff) | |
| download | fzf-5097e563df9c066e307b7923283cf1609ede693e.tar.gz | |
[neovim] Fix terminal buffer marker on Windows
Original Patch: https://github.com/junegunn/fzf/commit/a9bf29b65ec36d9caa7298aad0322fba8cb3e130
Diffstat (limited to 'plugin/fzf.vim')
| -rw-r--r-- | plugin/fzf.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 1565db84..15b2f6d4 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -35,6 +35,8 @@ else let s:base_dir = expand('<sfile>:h:h') endif if s:is_win + let s:term_marker = '&::FZF' + function! s:fzf_call(fn, ...) let shellslash = &shellslash try @@ -53,6 +55,8 @@ if s:is_win \ ['chcp %origchcp% > nul'] endfunction else + let s:term_marker = ";#FZF" + function! s:fzf_call(fn, ...) return call(a:fn, a:000) endfunction @@ -681,7 +685,7 @@ function! s:execute_term(dict, command, temps) abort if s:present(a:dict, 'dir') execute 'lcd' s:escape(a:dict.dir) endif - call termopen(a:command . ';#FZF', fzf) + call termopen(a:command.s:term_marker, fzf) finally if s:present(a:dict, 'dir') lcd - |
