diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2017-05-31 23:59:11 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-05-31 23:59:11 +0900 |
| commit | 35d407021c468f6faf0d99358d3fca1720d4edc9 (patch) | |
| tree | 015b8431a6c4f128b8540795deb96c7ede1f4491 /plugin/fzf.vim | |
| parent | 076f49d447093944b0ba91c4c60b57a9126869ea (diff) | |
| download | fzf-35d407021c468f6faf0d99358d3fca1720d4edc9.tar.gz | |
[vim] Replace invalid s:escape calls with fzf#shellescape
Diffstat (limited to 'plugin/fzf.vim')
| -rw-r--r-- | plugin/fzf.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 8c8ff855..8bdeb3b0 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -313,7 +313,7 @@ function! fzf#wrap(...) if !isdirectory(dir) call mkdir(dir, 'p') endif - let history = s:is_win ? fzf#shellescape(dir.'\'.name) : s:escape(dir.'/'.name) + let history = fzf#shellescape(dir.'/'.name) let opts.options = join(['--history', history, opts.options]) endif @@ -553,7 +553,7 @@ function! s:execute_tmux(dict, command, temps) abort let command = a:command if s:pushd(a:dict) " -c '#{pane_current_path}' is only available on tmux 1.9 or above - let command = 'cd '.s:escape(a:dict.dir).' && '.command + let command = join(['cd', fzf#shellescape(a:dict.dir), '&&', command]) endif call system(command) |
