diff options
| author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2017-07-29 20:38:58 -0400 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-07-30 20:05:01 +0900 |
| commit | 1fcc07e54ed2098be9f8b8b21e4b4292f2c5ea0c (patch) | |
| tree | 826e8bbcd0fe7e9bd35b81f60d4da376059d3b1d /plugin/fzf.vim | |
| parent | 8db3345c2fe5551a7cbc838ddef009813cdeec41 (diff) | |
| download | fzf-1fcc07e54ed2098be9f8b8b21e4b4292f2c5ea0c.tar.gz | |
[vim] Fix escape of backslash in s:shortpath
Close #1000
Diffstat (limited to 'plugin/fzf.vim')
| -rw-r--r-- | plugin/fzf.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index a70a3b33..7e19f25c 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -756,7 +756,7 @@ let s:default_action = { function! s:shortpath() let short = pathshorten(fnamemodify(getcwd(), ':~:.')) let slash = (s:is_win && !&shellslash) ? '\' : '/' - return empty(short) ? '~'.slash : short . (short =~ slash.'$' ? '' : slash) + return empty(short) ? '~'.slash : short . (short =~ escape(slash, '\').'$' ? '' : slash) endfunction function! s:cmd(bang, ...) abort |
