aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2022-04-04 00:52:20 +1200
committerTom Ryder <tom@sanctum.geek.nz>2022-04-04 00:52:20 +1200
commit0958f0f8d9754b2e7571b6a50f4db434b719564f (patch)
tree222f4d72216f4363039823c6a67c17498e211a46
parentMerge branch 'release/v1.1.0' (diff)
parentCorrect filename character class (diff)
downloadvim-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--VERSION2
-rw-r--r--autoload/spellfile_local.vim4
2 files changed, 3 insertions, 3 deletions
diff --git a/VERSION b/VERSION
index 9084fa2..524cb55 100644
--- a/VERSION
+++ b/VERSION
@@ -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