Skip to content
Myr

[neovim] Set 'dir' to the current direcotry

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

Close https://github.com/junegunn/fzf.vim/issues/308

authored by Junegunn Choi · committed by Junegunn Choi · parent 0b940e4 · Browse files · 1 file+4 added−0 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+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:plugin/fzf.vim+4 added
288 unmodified lines
289 catch290 throw v:exception291 endtry292293 if has('nvim') && !has_key(dict, 'dir')294 let dict.dir = getcwd()295 endif296297 if !has_key(dict, 'source') && !empty($FZF_DEFAULT_COMMAND)298 let temps.source = tempname().(s:is_win ? '.bat' : '')299 call writefile((s:is_win ? ['@echo off'] : []) + split($FZF_DEFAULT_COMMAND, "\n"), temps.source)300 let dict.source = (empty($SHELL) ? &shell : $SHELL) . (s:is_win ? ' /c ' : ' ') . s:shellesc(temps.source)
384 unmodified lines