diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2022-04-04 00:47:17 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2022-04-04 00:51:15 +1200 |
commit | 8c0dc9485865dd8713f61d94d62a7768e9ff6a0b (patch) | |
tree | ab87c01f675b70363dc13d3601c0e049d6964268 | |
parent | Merge branch 'release/v1.1.0' (diff) | |
download | vim-spellfile-local-8c0dc9485865dd8713f61d94d62a7768e9ff6a0b.tar.gz vim-spellfile-local-8c0dc9485865dd8713f61d94d62a7768e9ff6a0b.zip |
Correct filename character class
-rw-r--r-- | autoload/spellfile_local.vim | 4 |
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 |