Skip to content
Myr

[neovim] Fix terminal buffer marker on Windows

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

Original Patch: https://github.com/junegunn/fzf/commit/a9bf29b65ec36d9caa7298aad0322fba8cb3e130

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

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:plugin/fzf.vim+5 added-1 removed
33 unmodified lines
34else35 let s:base_dir = expand('<sfile>:h:h')36endif37if s:is_win38 let s:term_marker = '&::FZF'3940 function! s:fzf_call(fn, ...)41 let shellslash = &shellslash42 try43 set noshellslash
10 unmodified lines
54 \ (type(a:cmds) == type([]) ? a:cmds : [a:cmds]) +55 \ ['chcp %origchcp% > nul']56 endfunction57else58 let s:term_marker = ";#FZF"5960 function! s:fzf_call(fn, ...)61 return call(a:fn, a:000)62 endfunction63
620 unmodified lines
684 try685 if s:present(a:dict, 'dir')686 execute 'lcd' s:escape(a:dict.dir)687 endif684 call termopen(a:command . ';#FZF', fzf)688 call termopen(a:command.s:term_marker, fzf)689 finally690 if s:present(a:dict, 'dir')691 lcd -692 endif
93 unmodified lines