File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ function! wordy#init(...) abort
49
49
if ! isdirectory (l: spell_dir )
50
50
call mkdir (expand (l: spell_dir ), " p" )
51
51
endif
52
- let l: dst_path = l: spell_dir . ' /' . l: dict . ' .' . l: lang . ' .' . l: encoding . ' .spl'
52
+ " The dict name is the 'language' part of the filename
53
+ let l: dst_path = l: spell_dir . ' /' . l: dict . ' .' . l: encoding . ' .spl'
53
54
if get (l: args , ' force' , 0 ) ||
54
55
\ ! filereadable (l: dst_path ) ||
55
56
\ getftime (l: dst_path ) < getftime (l: src_path )
@@ -69,7 +70,9 @@ function! wordy#init(...) abort
69
70
let l: prefix = ' wordy: '
70
71
if len (l: dst_paths ) > 0
71
72
let b: original_spl = &spelllang
72
- exe ' setlocal spelllang=' . l: lang . ' ,' . join (l: dst_paths , ' ,' )
73
+ " vim looks up the files in the ./spell/ directory using spell-load (see
74
+ " the vim docs) so full paths are not allowed.
75
+ exe ' setlocal spelllang=' . l: lang . ' ,' . join (l: dicts , ' ,' )
73
76
setlocal spell
74
77
75
78
" the magic numbers derived empirically with MacVim
You can’t perform that action at this time.
0 commit comments