diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2022-04-04 00:52:20 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2022-04-04 00:52:20 +1200 |
commit | 0958f0f8d9754b2e7571b6a50f4db434b719564f (patch) | |
tree | 222f4d72216f4363039823c6a67c17498e211a46 | |
parent | Merge branch 'release/v1.1.0' (diff) | |
parent | Correct filename character class (diff) | |
download | vim-spellfile-local-0958f0f8d9754b2e7571b6a50f4db434b719564f.tar.gz vim-spellfile-local-0958f0f8d9754b2e7571b6a50f4db434b719564f.zip |
Merge branch 'hotfix/v1.1.1'v1.1.1
* hotfix/v1.1.1:
Correct filename character class
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | autoload/spellfile_local.vim | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1 +1 @@ -1.1.0 +1.1.1 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 |