diff options
Diffstat (limited to 'autoload/ctrlp/utils.vim')
| -rw-r--r-- | autoload/ctrlp/utils.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/autoload/ctrlp/utils.vim b/autoload/ctrlp/utils.vim index cfc9e6c..c238694 100644 --- a/autoload/ctrlp/utils.vim +++ b/autoload/ctrlp/utils.vim @@ -86,6 +86,13 @@ if exists('*fnameescape') let path = escape(a:path, '?*') en let path = substitute(path, '[', '[[]', 'g') + if (has('win32') || has('win64')) + if a:type == 'g' + let path = substitute(path, '(', '[(]', 'g') + elsei a:type == 'f' + let path = substitute(path, '\\(', '\\\\(', 'g') + en + en retu a:0 ? escape(path, a:1) : path endf el |