aboutsummaryrefslogtreecommitdiff
path: root/autoload/spellfile_local.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/spellfile_local.vim')
-rw-r--r--autoload/spellfile_local.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/spellfile_local.vim b/autoload/spellfile_local.vim
index a7f7a7d..177503f 100644
--- a/autoload/spellfile_local.vim
+++ b/autoload/spellfile_local.vim
@@ -93,8 +93,8 @@ endfunction
" that won't work nicely as filenames with percent signs
function! s:Filename(parts) abort
let pat = has('win32') || has('win64')
- \ ? '\c[^[:filename:]]\|[\\/:*?"<>|]'
- \ : '\c[^[:filename:]]\|[_/]'
+ \ ? '\c[^[:fname:]]\|\\'
+ \ : '\c[^[:fname:]]\|/'
return substitute(join(a:parts, '.'), pat, '%', 'g')
endfunction