Skip to content

Commit

Permalink
[neovim] Fix terminal buffer marker on Windows
Browse files Browse the repository at this point in the history
Original Patch: a9bf29b
  • Loading branch information
mikesmiffy128 authored and junegunn committed Sep 5, 2017
1 parent c7ad97c commit 5097e56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugin/fzf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 -
Expand Down

0 comments on commit 5097e56

Please sign in to comment.